Home Forums WinForms controls Xceed Grid for WinForms Master/Detail Grid Reply To: Master/Detail Grid

User (Old forums)
Member
Post count: 23064

I haven’t worked with master/detail a lot, and haven’t tried it, but maybe this could work:<code>DetailGrid dg = grid.CurrentRow.ParentGrid;
if (dg.ParentDataRow == null) {
// the current row belongs to the master grid
}
else {
// the current row belongs to the detail grid
}</code>

Imported from legacy forums. Posted by Tommy (had 271 views)