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.

Get CurrentCell''s rowIndex

Thread ID:





27820 Apr 19,2005 05:48 AM Apr 19,2005 10:56 AM Windows Forms 1
Tags: Grouping
Asked On April 19, 2005 05:48 AM

How do I get the position of CurrentCell''s rowIndex from a datarow of the datasource with GridGroupingControl ? I use syncfusion library Thank of everything

Administrator [Syncfusion]
Replied On April 19, 2005 10:56 AM

To get the rowindex in the grid, you need to look up the corresponding Record, rec, using grid.Table.DisplayElements.IndexOf(rec). To actually get the record you need, you have some options depending upon what you know. If you already know the position of the datarow in the DataTable, you can get the record using Record rec = this.gridGroupingControl1.Table.UnsortedRecords[position]; If you have a primary key for your datatable, you can use int i = this.gridGroupingControl1.Table.PrimaryKeySortedRecords.IndexOf("keyvalue"); Record rec = this.gridGroupingControl1.Table.FilteredRecords[i]; Again, once you have the record, you can use grid.Table.DisplayElements.IndexOf to get the index.


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.