Checking if a Parent Table row has a Child Table

Hi, I would like to know how you check if a row on a GGC is expandable. When iterating through the rows on a GGC grid, how do i check if a row can be expanded i.e. how do i check if a row has a child table.

1 Reply

AD Administrator Syncfusion Team August 25, 2005 08:08 AM UTC

Given a GridRecord, rec, you can use code like this to test to see if it is expanded or has child records: Console.WriteLine(rec.IsExpanded); Console.WriteLine(rec.NestedTables.Count > 0 && rec.NestedTables[0].Records.Count> 0);

Loader.
Up arrow icon