GridStaticCellRenderer and Selection

We are using a custom control in a virtual grid using the GridStaticCellRenderer. However we only want to "hottrack" if the row it is in has selection. Is there a way to detect if the currentcell is part of a row that has selection? (I could write a utility but I figured currentCell.IsSelected or something of the like might exist allthough I didnt see anything)

1 Reply

AD Administrator Syncfusion Team March 22, 2004 10:13 PM UTC

To see if the CurrentCell is in a selection, you can try if(this.grid.Selections.Ranges.AnyRangeContains(this.grid.CurrentCell.RangeInfo)) { }

Loader.
Up arrow icon