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.
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:

Created:

Updated:

Platform:

Replies:

60627 May 9,2007 01:55 PM UTC May 10,2007 10:14 PM UTC Windows Forms 2
loading
Tags: Grouping
Mitul
Asked On May 9, 2007 01:55 PM UTC

Hi,

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...

Thanks

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,
Haneef

Mitul
Replied On May 10, 2007 10:14 PM UTC

Hi

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.

CONFIRMATION

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.

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

;