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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Convert Row Index to DataSource Index

Thread ID:





31654 Jul 12,2005 09:32 AM UTC Jul 12,2005 05:19 PM UTC WinForms 1
Tags: GridControl
Mikaël Morvan
Asked On July 12, 2005 09:32 AM UTC

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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon