Gridview Headeris always bold?

Discussion in 'ASP .Net' started by Bryan, Nov 17, 2005.

  1. Bryan

    Bryan Guest

    Hello,
    in ASP.NET 1.x I rememebr that the header of a datagrid was not output as a
    <th> tag. Now in 2.0 using the new gridview, it is out put as a table
    header, which makes everything bold. What if I don't want everything in the
    header to be Bold in the gridview?

    I am trying to port over an old aspnet app and I can't have the header bold,
    it just looks fugly.

    Any helps to turn off bold in the header would be great!

    Thanks,
    Bryan
    Bryan, Nov 17, 2005
    #1
    1. Advertising

  2. Add within the grid defintion:
    <HeaderStyle CssClass="MyHeaderStyle"/>

    and in the style section of your page:
    ..MyHeaderStyle td{font-weight:normal;}
    -----
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "Bryan" wrote:

    > Hello,
    > in ASP.NET 1.x I rememebr that the header of a datagrid was not output as a
    > <th> tag. Now in 2.0 using the new gridview, it is out put as a table
    > header, which makes everything bold. What if I don't want everything in the
    > header to be Bold in the gridview?
    >
    > I am trying to port over an old aspnet app and I can't have the header bold,
    > it just looks fugly.
    >
    > Any helps to turn off bold in the header would be great!
    >
    > Thanks,
    > Bryan
    >
    >
    >
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, Nov 18, 2005
    #2
    1. Advertising

  3. "Phillip Williams" wrote:

    > Add within the grid defintion:
    > <HeaderStyle CssClass="MyHeaderStyle"/>
    >
    > and in the style section of your page:
    > .MyHeaderStyle td{font-weight:normal;}


    (correction) .MyHeaderStyle th{font-weight:normal;}


    > -----
    > HTH,
    > Phillip Williams
    > http://www.societopia.net
    > http://www.webswapp.com
    >
    >
    > "Bryan" wrote:
    >
    > > Hello,
    > > in ASP.NET 1.x I rememebr that the header of a datagrid was not output as a
    > > <th> tag. Now in 2.0 using the new gridview, it is out put as a table
    > > header, which makes everything bold. What if I don't want everything in the
    > > header to be Bold in the gridview?
    > >
    > > I am trying to port over an old aspnet app and I can't have the header bold,
    > > it just looks fugly.
    > >
    > > Any helps to turn off bold in the header would be great!
    > >
    > > Thanks,
    > > Bryan
    > >
    > >
    > >
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, Nov 18, 2005
    #3
  4. Bryan

    Bryan Guest

    I found a new property on the gridview control, its "UseAccessableHeader",
    setting that to false did the trick and made it not bold.

    Bryan


    "Bryan" <> wrote in message
    news:...
    > Hello,
    > in ASP.NET 1.x I rememebr that the header of a datagrid was not output as
    > a <th> tag. Now in 2.0 using the new gridview, it is out put as a table
    > header, which makes everything bold. What if I don't want everything in
    > the header to be Bold in the gridview?
    >
    > I am trying to port over an old aspnet app and I can't have the header
    > bold, it just looks fugly.
    >
    > Any helps to turn off bold in the header would be great!
    >
    > Thanks,
    > Bryan
    >
    Bryan, Nov 18, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Music Lover

    Bold Italic UnderLine in TextBox

    Music Lover, Nov 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    811
    Teemu Keiski
    Nov 26, 2003
  2. Carlos Arra via .NET 247
    Replies:
    3
    Views:
    395
    Peter Brunone [MVP]
    Apr 26, 2006
  3. =?Utf-8?B?TmljayBaZHVuaWM=?=

    Make some dropdown items in a GridView Column Bold

    =?Utf-8?B?TmljayBaZHVuaWM=?=, Mar 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    589
    Benjamin Strackany
    Mar 27, 2006
  4. Deryck
    Replies:
    4
    Views:
    508
    derek giroulle
    Jun 22, 2004
  5. jobs
    Replies:
    2
    Views:
    1,568
Loading...

Share This Page