GridView标头字体,能不能设置为正常(不加粗)?具体在哪里设置?<HeaderStyle HorizontalAlign="Center" Font-Bold="false" />不起效果

解决方案 »

  1.   

    <asp:BoundField 具体列里面也可以设置头文本的格式
      

  2.   

    看一下源代码会发现GridView的Header在HMTL里成为<th>所以最简单是:
    <style type="text/css">
          th { font-weight:normal; }
    </style>不过建议把GridView包含在一个<div id="gv">内.
    然后在css里#gv th { font-weigth:normal; }
      

  3.   

    应该是font-weight, 拼写错误。