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

Get CurrentCell''s rowIndex

Thread ID:





27820 Apr 19,2005 09:48 AM UTC Apr 19,2005 02:56 PM UTC WinForms 1
Tags: Grouping
Asked On April 19, 2005 09:48 AM UTC

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 02:56 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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