AD
Administrator
Syncfusion Team
October 24, 2003 12:35 PM UTC
You need to get the GridBoundRecordState for a particular to determine the level of the row, whether the row has children, and those children are, the collection this row belongs to, etc. This object contains the information on the row. Here is a code snippet that will retrieve the recordstate of the current row.
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
GridBoundRecordState rs = this.gridDataBoundGrid1.Binder.GetRecordStateAtRowIndex(cc.RowIndex);
Console.WriteLine(rs.Table.Count);