简体   繁体   中英

How to change the color of just one header in a telerik grid?

I am working on a telerik radgrid with five columns. I want the header of just one column to be of some specific color. The Column is declared in the following format:

items.Add().Text("Incidents").Content(() =>

How can I add a style for changing the color in the given snippet?

您可以使用类似:

"radGrid.Columns[1].HeaderStyle.BackColor = System.Drawing.ColorTranslator.FromHtml("#ffea77");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM