Determine if a Row or Column is selected

How do I determine if an individual Row or Column is selected? Do i have to go thru the Selections collection (and each gridrangeinfo) to find the one I need?

1 Reply

AD Administrator Syncfusion Team August 19, 2004 03:41 PM UTC

Here is code that checks whether some row is selected. You can do something similar with columns as well. GridRangeInfoList selectedRanges = this.gridDataBoundGrid1.Selections.Ranges; GridRangeInfo range = GridRangeInfo.Row(someRowIndex); if(selectedRanges.Contains(range)) { //someRowIndex is selected }

Loader.
Up arrow icon