Home Forums WinForms controls Xceed Grid for WinForms Add sub row Reply To: Add sub row

User (Old forums)
Member
Post count: 23064

Is there any way to add the detail grid data outside of the event callback? I don’t mean have the event callback call another method, I mean have another addDetailGridRow() method that uses that handle and adds a row to the detail grid later in your program (such as when a user clicks a button).

Basically I have overridden GridControl, DetailGrid, DataRow, and DataCell to hold some local variables and make adding data easier. It all works when I add detail grids from the InitializingDetailGridEvent callback, but when I try and access the DetailGrids later they do not show up. If I call gridControl1.DataRows[0].DetailGrids[0].Count I can see all the rows I added exist, they just don’t show up on the grid. Is there some update I need to be calling? Some redraw method I failed to override?

Thanks 

Mac 

Imported from legacy forums. Posted by Mac (had 260 views)