This is a migrated thread and some comments may be shown as answers.

Change gridview headertext column forecolor

2 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 29 Aug 2011, 09:35 AM
Hi, how can i change the headertext forecolor of some columns of my radgridview.
Some columns are required and i want to put the headertext in red.
thanks

2 Answers, 1 is accepted

Sort by
0
OD
Top achievements
Rank 1
answered on 31 Aug 2011, 01:19 PM
found the solution

DisableHTMLRendering = False on the column
and in the headertext propertie of the column, i put the following string
"<html>MyHeaderText<color= 255, 0, 0> <b>*</b>"
0
Stefan
Telerik team
answered on 31 Aug 2011, 06:32 PM
Hi Nermond,

Thank you for writing.

Another approach which you can use is the ViewCellFormatting event. This is the right place to modify the appearance of non-data cells. Please refer to the following help article, where you can find examples of such a customization. 

I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
 
Kind regards,
Stefan
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
OD
Top achievements
Rank 1
Answers by
OD
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or