Home Forums WinForms controls Xceed Grid for WinForms Calling UpdateDetailGrids inside CollapseChanged event Reply To: Calling UpdateDetailGrids inside CollapseChanged event

User (Old forums)
Member
Post count: 23064

Ok I was making a mistake. But I was very close to getting it working 🙂

Firstly, in the above example you don’t need to call UpdateDetailGrids, as the detail grid does not yet contain any rows. An important consideration. Secondly, I didn’t add a ColumnManagerRow to my DetailGridTemplate, which is why I couldn’t see any column headings when I commented out UpdateDetailGrids. duh.

For people reading the example, it is also important to not that I have set SynchronizeDetailGrids to false, meaning I can have completely different columns in each detail grid.

It’s always so obvious once it’s working!

Imported from legacy forums. Posted by IdleHand (had 3079 views)