Home Forums WinForms controls Xceed Grid for WinForms Add dynamic Master/Detail

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15026 |

    Hi.

    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.

    Best regards.

    Claudio.

    Imported from legacy forums. Posted by crsilva (had 1850 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.