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

How to find RowIndex

Thread ID:





81002 May 7,2009 05:27 AM UTC May 7,2009 03:37 PM UTC WinForms 1
Tags: GridControl
Asked On May 7, 2009 05:27 AM UTC


I am using GridControl in my project.The row count is 3.

When user selects portion of a row then, I have raised SelectionChanged Event for GridControl.In called method, I need to check which row user has selected.
so, Kindly let me know how I get the row Index in the called method.


Lingaraj S [Syncfusion]
Replied On May 7, 2009 03:37 PM UTC


Thank you for your interest in Syncfusion product.

The GridControl selection rows are stored as a Ranges. If you want the selected row in GridControl, please try using GetSelectedRanges method to achieve this behaviour.

Please refer the code below:

GridRangeInfoList gridRangeInfoList = null;
this.grid.Model.Selections.GetSelectedRanges(out gridRangeInfoList, true);
GridRangeInfo info = gridRangeInfoList.ActiveRange;
if (info != null && info.IsRows)
MessageBox.Show("Top " + info.Top.ToString() + " Bottom " + info.Bottom.ToString());

Let me know if you have any queries.

Lingaraj S.


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