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. Image for the cookie policy date

Grid Color

Hi,

I have a function which chanes the color of the specfic cell at run time.

so writen the following code which sjow no effect on grid.Why?


this.Grid.Model[Row,Col].Font = new GridFontInfo(new Font("Arial",12f,FontStyle.Bold));
this.Grid.Model[Row,Col].BackColor = System.Drawing.Color.Red;

Can anyone suggest me?

Regards

Babu





1 Reply

JN Jayakumar Natarajan Syncfusion Team December 28, 2006 04:21 PM UTC

Hi Babu,
If you are using GridDataBoundGrid, you need to handle the PrepareViewStyleInfo event to set a particular cell's back color:

KB article:
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=83

Best regards,
Jay

Loader.
Live Chat Icon For mobile
Up arrow icon