Selections in Renderer

I have a GridControl that works well with a derivitive of a GridStaticCellRenderer. How do I determine in the renderer whether the cell being drawn is selected or not? Since the detemination is done in the Draw method, this action needs to be fast. Thanks

1 Reply

AD Administrator Syncfusion Team January 17, 2005 04:44 PM UTC

You can try: if(this.Grid.Selections.Ranges.AnyRangeContains(GridRangeInfo.Cell(this.RowIndex, this.ColIndex))) { //.... }

Loader.
Up arrow icon