AD
Administrator
Syncfusion Team
October 24, 2002 01:44 PM UTC
Since it looks like you ultimately want to access the selected cells in the grid, then you ultimately have to get at the row and col index. One way to do this is to iterate through the GridControl.Selections.GetSelectedRanges collection, and look at each range.
One technical point is that a range can be just a range of columns or rows or cells or table. And to loop through by row/col, the range has to have the top, left, bottom, right properties properly set for each of these different kinds of ranges. The GridRangeInfo.ExpandRange method handles this technical problem for you.
Attached is a sample that shows how you might go about this task.