I have a multiband grid where I want to create child bands when the expansion indicator is selected on the parent band. I put code to do this in the BeforeRowExpanded event but the expansion indicator disappears like there is no child data. I am manually creating records in the dataset that is bound to the grid. do I have to refresh the grid maybe?
Hi,
I would advise against this. The grid is really not designed to handle dynamically added and/or removed bands.The grid's data structure has to be homogenous, so it's more efficient and easier to set up the band structure up front.
Having said that, what you probably need to do is call grid.Rows.Refresh to force it to reload the data.