We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon