Convert Row Index to DataSource Index

Hi, Is there some methods in GridGroupingControl which convert RowIndex to the underline datasource index like in GridDataBoundGrid ? GridDataBoundGrid : this.gridDataBoundGrid1.Binder.RowIndexToListManagerPosition(RowIndex) Regards, Mikaël

1 Reply

AD Administrator Syncfusion Team July 12, 2005 05:19 PM UTC

It is a little more involved since the GridGroupingCOntrol can have other things besied Records visible.
Element el = this.gridGroupingControl1.Table.DisplayElements[rowIndex];
if(el is GridRecordRow)
{
	GridRecordRow recRow = el as GridRecordRow;
	int position = this.gridGroupingControl1.Table.UnsortedRecords.IndexOf(recRow.ParentRecord);
	Console.WriteLine(position);
}

Loader.
Up arrow icon