Dynamic Cell Formatting - QueryCellStyleInfo

Only been using Syncfusion for a few days and still getting my feet wet.

Anyway, I am following the example in the User Guide for applying styles to specific cells based on the cell's value. The grid contains multiple columns that can contain a value of either 1, 2 or 3. Based on the value we want the cell color to reflect:

1 = Red
2 = Yellow
3 = Green

In the example in the User Guide it updates the BackColor property. I was using this and it worked well but I also wanted to center the text in the column and this is not an option - that I can find - so I decided to apply a CssClass. Is there a reason why the only options for Syncfusion.Windows.Forms.Grid.GridTextAlign are default, left and right? No center?

The problem I am having is if there is a value in the last column in the grid then the entire row - the TR element - is updated with the CssClass of the last cell in the Grid as well.

I am also using the Office 2007 Blue format.

I've attached a screenshot. Anyone else ever experience that?

Rob



Screenshot_94aa8a55.zip

1 Reply

SN Sridhar N Syncfusion Team May 5, 2011 10:29 AM UTC

Hi Robert,

Thanks for using Syncfusion products.

We have provided response to your query in DirectTrac Incident 80006.

Could you please refer it and follow up in above incident.

Please let us know your concerns.

Regards,
Sridhar.N



Loader.
Up arrow icon