Home › Forums › WinForms controls › Xceed Grid for WinForms › Add dynamic Master/Detail
In my application, I have a master detail grid. The users must be able to edit the detail grids, adding new columns and renaming them. How can I do that?
I read the documentation (MasterDetail project), but it didn’t help me enough.
Imported from legacy forums. Posted by crsilva (had 1850 views)
It depends if you want to add the new column to all the detail grids, or only to the one currently selected.
To add a column to all detail grids, you need to add it to the DetailGridTemplate, and call UpdateDetailGrids on the GridControl.
To add a column to only one detail grid, then you need to set the SynchronizeDetailGrids property on the GridControl to false, get a reference to the DetailGrid in question, and add the column to it.
Imported from legacy forums. Posted by André (had 2942 views)