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.
Unfortunately, activation email could not send to your email. Please try again.

Convert Row Index to DataSource Index

Thread ID:





31654 Jul 12,2005 05:32 AM Jul 12,2005 01:19 PM Windows Forms 1
Tags: GridControl
Mikaël Morvan
Asked On July 12, 2005 05:32 AM

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

Administrator [Syncfusion]
Replied On July 12, 2005 01:19 PM

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);


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.