Datagrid and color from CSS

Discussion in 'ASP .Net Datagrid Control' started by robin9876@hotmail.com, Jul 1, 2005.

  1. Guest

    Can the datagrid in Asp 1.1 be configured to use color definations
    from a CSS file?
     
    , Jul 1, 2005
    #1
    1. Advertising

  2. Teemu Keiski Guest

    Yes,

    DataGrid's relevant styles such as ItemStyle,HeaderStyle,
    PagerStyle,AlternatingItemStyle have CssClass property which can point to a
    valid CSS class declared.

    For example

    <asp:DataGrid ... ItemStyle-CssClass="myblueitem" ...
    ....
    </asp:DataGrid>


    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU
    http://blogs.aspadvice.com/joteke
     
    Teemu Keiski, Jul 2, 2005
    #2
    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. moondaddy
    Replies:
    3
    Views:
    38,989
    moondaddy
    Apr 28, 2004
  2. PJ6
    Replies:
    4
    Views:
    4,929
  3. Andrew Arace

    BGR Color to Java Color

    Andrew Arace, Sep 13, 2003, in forum: Java
    Replies:
    7
    Views:
    7,966
    Stephen Gilbert
    Sep 16, 2003
  4. ChrisC
    Replies:
    2
    Views:
    478
    Roedy Green
    Aug 23, 2007
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    503
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page