Apply a style to datagrid

Discussion in 'ASP .Net Datagrid Control' started by Stef, Apr 25, 2006.

  1. Stef

    Stef Guest

    Hello folks,
    I don't know if this is possible but here it goes:
    I want to define a CSS class that I will specify in the CssClass
    property of a datagrid which will apply styles to every aspect of that
    datagrid.

    Like, I would like to define a class that puts the ItemTemplate's back
    color to AliceBlue with a Verdana 7 pt font then, in that class I would
    also define that the fonts in the header is 12 pt and BOLD and black
    and so on...

    I know I can assign a CssClass to every template in the inline html
    code. I was just wondering if I could apply a single class to a
    DataGrid which would do all the job within the CSS class. If it's
    possible, someone is willing to show me or post a link?

    Thanks a lot!
    Stef, Apr 25, 2006
    #1
    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. =?Utf-8?B?bnN2a2V5YW4=?=

    how to apply css class style to web controls

    =?Utf-8?B?bnN2a2V5YW4=?=, Feb 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,666
    Chris Jackson
    Feb 20, 2004
  2. Hardy Wang
    Replies:
    2
    Views:
    14,800
    Hardy Wang
    Apr 14, 2004
  3. Hardy Wang
    Replies:
    1
    Views:
    7,255
    Bruce Barker
    May 3, 2005
  4. Stefan Siegl
    Replies:
    1
    Views:
    950
    Marrow
    Jul 18, 2003
  5. Ken Varn
    Replies:
    0
    Views:
    428
    Ken Varn
    Apr 26, 2004
Loading...

Share This Page