Home › Forums › WinForms controls › Xceed Grid for WinForms › Detailgrid › Reply To: Detailgrid
Well, I would recommend populating your detail grids in an event handler, it shouldn’t be that complicated if your objects are well designed.
However, if you don’t then I guess you can iterate through your grid’s DataRows, something like this:
1. Add columns to grid
2. Create <b>single</b> DetailGridTemplate
3. Add columns to detail grid template
4. Add detail grid template to grid
5. Add rows to grid
6. Iterate through DataRows of grid:
—- Use dataRow.DetailGrid to obtain instance of DetailGridTemplate
—- Add rows to detail grid instance
Please note, I haven’t tried this, but it may work.
Imported from legacy forums. Posted by IdleHand (had 420 views)