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.

Grid Row Index value

Thread ID:

Created:

Updated:

Platform:

Replies:

42240 Mar 23,2006 06:24 AM Mar 23,2006 08:02 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 23, 2006 06:24 AM

Hi, How do we get the RowIndex of the selected row in a grid? for eg: If I select the 4th row in the grid then the returned index should be 4. Regards, Preethi.

dwedewdew
Replied On March 23, 2006 06:30 AM

>How do we get the RowIndex of the selected row in a grid? for eg: If I select the 4th row in the grid then the returned index should be 4. The grids selections are stored in this.gridControl1.Selections . There you find Ranges.ActiveRange . ActiveRange.Top gives you the starting row index of your selection, ActiveRange.Bottom the last rowIndex of your selection etc. Yours Christian!

Administrator [Syncfusion]
Replied On March 23, 2006 08:02 AM

Hi Christian, Thanks for the prompt response.We appreciate it. The solution works. Thanks again. Regards, Preethi. > >>How do we get the RowIndex of the selected row in a grid? for eg: If I select the 4th row in the grid then the returned index should be 4. > >The grids selections are stored in this.gridControl1.Selections . > >There you find Ranges.ActiveRange . >ActiveRange.Top gives you the starting row index of your selection, ActiveRange.Bottom the last rowIndex of your selection etc. > >Yours > >Christian!

CONFIRMATION

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.

;