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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Overwriting selected cell backcolour by setting cell colour using querycellstyle info

Thread ID:





60627 May 9,2007 01:55 PM UTC May 10,2007 10:14 PM UTC WinForms 2
Tags: Grouping
Asked On May 9, 2007 01:55 PM UTC


How can I overwrite the selected row's default colour by setting a cell's colour using querycellstyle info. I have a column that flashes either red or green, but when a row is selected, that column only appears red/green when the cell in that column is active. I want the cell to colour even when this is not the case. Please advise...


haneefm [Syncfusion]
Replied On May 9, 2007 09:16 PM UTC

Hi Mitul,

If you want to change the selection color in a grid, you need to set the TableOptions.SelectionBackColor property to new color.

this.grid.TableOptions.SelectionBackColor = Color.Red;

Best regards,

Replied On May 10, 2007 10:14 PM UTC


I have already done this. The problem is that i want to overwrite this colour in query cell style info by setting e.style.backcolor = blue, for example. So when the row is selected, all cells the row will be red, except the specfic cell i colour blue in query cell style info method.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon