Formatting a cell based upon another cell''s data

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

2 Replies

JS Jeba S Syncfusion Team 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.


MO Michael Offner 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.

Loader.
Up arrow icon