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

Hw do i get specific list of all rows selected

Thread ID:

Created:

Updated:

Platform:

Replies:

59734 Apr 20,2007 03:01 PM UTC Apr 20,2007 05:52 PM UTC WinForms 1
loading
Tags: GridControl
Raul
Asked On April 20, 2007 03:01 PM UTC

The Grid Info List returns a range of all rows..(R3:R8)...Hw do i get a list of row indices like
3,4,5,6,7,8

haneefm [Syncfusion]
Replied On April 20, 2007 05:52 PM UTC

Hi Rahul,

You can try this code.

foreach( GridRangeInfo info in this.grid.Model.SelectedRanges)
{
for( int i = info.Top; i <=info.Bottom;i++)
{
Console.WriteLine("RowIndex {0} has been selected",info.Top);
}
}

Best regards,
Haneef

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.

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

;