Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Dynamically add a column into a Gridfield?


Go to End


1232 Views

Avatar
BenWu

Community Member, 97 Posts

12 December 2014 at 7:38am

Hello

I got the same data model attached to different pages in the SiteTree. I wonder to show different fields of the model in the gridfield for different Page Class. How to achieve it? Probably i have to implement some kind of GridFieldDataColumns to do it?