开发者

GridView column .different fonts for headertext

开发者 https://www.devze.com 2023-03-27 20:53 出处:网络
i have a requirement t开发者_如何学JAVAo show a gridview column as mandatory field(using asterix sign) ie

i have a requirement t开发者_如何学JAVAo show a gridview column as mandatory field(using asterix sign) ie

SomColumn1 SomeColumn2*

my problem is how can i make the column name and asterisk sign in two different fonts

meaning SomeColumn2 is blue color and * is Red color


If you have bound the GridView using TemplateField, you can set HeaderStyle on each column like this.

<HeaderStyle BackColor="Blue" />

Apply Red in the same fashion to the other column. And if you want to change the class itself, try.

<HeaderStyle CssClass="myclass" />
0

精彩评论

暂无评论...
验证码 换一张
取 消