Link to home
Create AccountLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Header Font Size in Grid View

Hello Experts,
In a GridView, I am trying to change the font size of a Header column.  I used HeaderStyle-CssClass property.  Though it is not giving any error, it is not working.  I tried to change it to a Templete Field and used the CSS.  Still no good.  Please let me know what is the best way.

Thank you in advance.
Avatar of HainKurt
HainKurt
Flag of Canada image

need sample or link to the page or html output
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Huseyin,
The GridView is a regular one.  All I need is change the Header font using Style Sheet.  Because of the Company policy I will not be able to post the code.

Thank you!
nobody can help you if you don't post html or give us link to that page or do not create a sample page...
Avatar of Ryan Chong
try use HeaderStyle-Font-Size instead:

like:

<asp:GridView ID="GridView1" runat="server" AllowPaging="True" ShowFooter ="True"
            AllowSorting="True" AutoGenerateColumns="False"  
            HeaderStyle-Font-Size="18px"
            DataSourceID="SqlDataSource1" EmptyDataText="No data" CellPadding="4"
            ForeColor="#333333" GridLines="None">
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Ryan,
Thank you.  This is how I exactly did it.