0

i have a requirement to 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

sajad
  • 923
  • 2
  • 10
  • 25

1 Answers1

1

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" />
naveen
  • 53,448
  • 46
  • 161
  • 251
  • Thanks . actually i forgot that there exists header template :) , adding two lables and defining their font solved the issue..thnx – sajad Aug 11 '11 at 08:30