Essential Grid WPF
GridTreeControl: SelectedCells
February 7, 2012 06:46 AM by Rajasekar[Syncfusion]
AR
GridTreeControl: SelectedCells
February 2, 2012 03:46 PM
How do I iterate and read the value of SelectedCells?

Rajasekar
[Syncfusion]
GridTreeControl: SelectedCells
February 7, 2012 06:46 AM
Hi AR,

Thanks for your update.

You can achieve your requirement by using the below code snippet,

Code Snippet[C#]

for (int i = gtc.Model.SelectedRanges.ActiveRange.Top; i < gtc.Model.SelectedRanges.ActiveRange.Bottom; i++)
{
for (int j = gtc.Model.SelectedRanges.ActiveRange.Left; j < gtc.Model.SelectedRanges.ActiveRange.Right; j++)
{
string cellValue = gtc.Model[i, j].CellValue.ToString();
}
}

Please let us know if you have any queries.

Thanks,
Rajasekar



::adCenter::