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.

how do i change the color on just one column header in a griddataboundgrid

Thread ID:





114738 Dec 5,2013 01:21 PM Dec 11,2013 01:54 AM Windows Forms 2
Tags: GridControl
QLT User
Asked On December 5, 2013 01:21 PM

i have multiple columns but want to make one column header color to be different from others.

Praveena P [Syncfusion]
Replied On December 11, 2013 01:34 AM

Hi QLT User,

Thanks for your interest in Syncfusion products.

To change the specific one column header color, kindly make use of the below code in which can be used for changing color of 3rd column header .

gridDataBoundGrid1[0, 3].TextColor = Color.Red;


Praveena P [Syncfusion]
Replied On December 11, 2013 01:54 AM

Hi QLT User,

We deeply regret for the inconvenience.Please ignore the previous response.

To change the specific column headercolor in GridDataBoundGrid make use of PrepareViewStyleInfo event.

Please refer the below link:




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.

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.