We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon