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
close icon

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

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

2 Replies

PP Praveena P Syncfusion Team December 11, 2013 06:34 AM UTC

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 .

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

Regards,
Praveena.
 





PP Praveena P Syncfusion Team December 11, 2013 06:54 AM UTC

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:

http://help.syncfusion.com/ug/windows%20forms/grid/default.htm#!Documents/howtochangetheappear1.htm

Regards,
Praveena.

Loader.
Live Chat Icon For mobile
Up arrow icon