Cascading Style Sheets

Discussion in 'ASP .Net Datagrid Control' started by Pete Walburn, Nov 6, 2003.

  1. Pete Walburn

    Pete Walburn Guest

    Hi,

    I am writing a web based application in VB.Net. A lot of
    the forms in the applicaiotn have grids (datagrids) in
    them. I would like to have a style sheet which defines
    how the headers are going to look. There are going to be
    quite a few web applications and we want a similar look
    and feel to them all.

    So I thought we could use a CSS in order to define how
    things looked.

    Does anyone have any information on using Cascading Style
    Sheets for datagrids?

    Pete
     
    Pete Walburn, Nov 6, 2003
    #1
    1. Advertising

  2. Pete Walburn

    Jos Guest

    Pete Walburn wrote:
    > Hi,
    >
    > I am writing a web based application in VB.Net. A lot of
    > the forms in the applicaiotn have grids (datagrids) in
    > them. I would like to have a style sheet which defines
    > how the headers are going to look. There are going to be
    > quite a few web applications and we want a similar look
    > and feel to them all.
    >
    > So I thought we could use a CSS in order to define how
    > things looked.
    >
    > Does anyone have any information on using Cascading Style
    > Sheets for datagrids?
    >
    > Pete


    You can set the CssClass property for every style in the datagrid.

    One way to do it would be something like this:
    <asp:DataGrid id="mydatagrid" HeaderStyle-CssClass="myheaderstyle"
    runat="server" />

    --

    Jos
     
    Jos, Nov 8, 2003
    #2
    1. Advertising

  3. Thanks Jos

    I'll try out using things like this.

    Peter Walburn

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Peter Walburn, Nov 9, 2003
    #3
    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. Herb Stull

    Cascading Style Sheets

    Herb Stull, Jan 22, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    384
    Herb Stull
    Jan 22, 2004
  2. JezB
    Replies:
    5
    Views:
    2,133
  3. =?Utf-8?B?SmltIEhlYXZleQ==?=

    Cascading Style Sheets

    =?Utf-8?B?SmltIEhlYXZleQ==?=, Jun 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    389
    Cowboy \(Gregory A. Beamer\) [MVP]
    Jun 7, 2004
  4. John
    Replies:
    2
    Views:
    490
    nicholas
    Dec 16, 2004
  5. Fred Nelson
    Replies:
    1
    Views:
    2,719
    =?Utf-8?B?bGF0aGEgdmFsbGluYXlhZ2Ft?=
    May 5, 2005
Loading...

Share This Page