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.
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.
need sample or link to the page or html output
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!
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...
try use HeaderStyle-Font-Size instead:
like:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" ShowFooter ="True"
AllowSorting="True" AutoGenerateColumns="False "
HeaderStyle-Font-Size="18p x"
DataSourceID="SqlDataSourc e1" EmptyDataText="No data" CellPadding="4"
ForeColor="#333333" GridLines="None">
like:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" ShowFooter ="True"
AllowSorting="True" AutoGenerateColumns="False
HeaderStyle-Font-Size="18p
DataSourceID="SqlDataSourc
ForeColor="#333333" GridLines="None">
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Ryan,
Thank you. This is how I exactly did it.
Thank you. This is how I exactly did it.