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

Grid Color

Thread ID:

Created:

Updated:

Platform:

Replies:

54047 Dec 28,2006 11:36 AM UTC Dec 28,2006 04:21 PM UTC Windows Forms 1
loading
Tags: GridControl
Babu
Asked On December 28, 2006 11:36 AM UTC

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





Jayakumar Natarajan [Syncfusion]
Replied On 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

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

;