NR
Nirmal Raja
Syncfusion Team
July 21, 2010 05:15 AM UTC
Hi Boopathiraja,
Thank you for your interest in Syncfusion products.
Retrieving the selected range using the e.Range in the SelectionChanged event will produce only the active range of the grid, and it will not provide the whole list of selection range. When you select it through dragging then it will be a single range and when you select it through mouse click then it will take each column in to the selected range as a list. To retrieve the selected range list please get the range directly from the grid object instead of e.Range in the event.
Please refer the code below which illustrate to retrieve the selected range list:
void Model_SelectionChanged(object sender, GridSelectionChangedEventArgs e)
{
Console.WriteLine(gridControl2.Selections.Ranges.ToString());
}
Let me know if you have any queries.
Regards,
Nirmal