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

Formatting a cell based upon another cell''s data

Thread ID:

Created:

Updated:

Platform:

Replies:

63249 Jun 30,2007 08:50 PM UTC Jul 5,2007 01:30 PM UTC Windows Forms 2
loading
Tags: Grouping
Michael Offner
Asked On June 30, 2007 08:50 PM UTC

Hello,

For a given record on the grid, I would like to be able to make a cell of field 'A' a certain color, or change the cell's text when the text of the cell in field 'B' is a certain value.

It looks like using either TableControlPrepareViewStyleInfo, TableControlDrawCellDisplayText, or the QueryCellStyleInfo events would work. However, I get a corrupted Grid when I write code in these events. It looks like accessing a cell different from the one the event is being fired for is causing the problem.

Thank you very much for your help!
-MikeO

Jeba S [Syncfusion]
Replied On July 2, 2007 12:30 PM UTC


Hi MikeO,

Please refer this forum thread that discusses "Conditional Formating for Individual Cells"

http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=26929

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

Michael Offner
Replied On July 5, 2007 01:30 PM UTC

Hi Jeba,

The solution described in the link works nice, and fixed our problem.

Thanks!
-Mike

>
Hi MikeO,

Please refer this forum thread that discusses "Conditional Formating for Individual Cells"

http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=26929

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

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

;