Custom row styling in a datagrid depending on certain data in ASP.

Discussion in 'ASP .Net' started by =?Utf-8?B?Y2RiaWdncw==?=, Mar 12, 2006.

  1. I've got a website, written in ASP.Net 1.1, that displays a workschedule.
    I'm using a disconnected DataSet to display certain fields in a DataGrid.
    Data fields are:

    Start Date - Start Time - End Date - End Time - Type of Work

    What I want to do is change the ForeColor (color of font) of each row
    depending on the type of work being done. For each type of work being done,
    each will have a specific color. IE - welding (in Type of Work field) will be
    blue, and I would like the whole row to be blue. Next row, depending on the
    work, will be a different color. I can't find any documentation on how to
    accomplish this, and would like a little help. I appreciate it.
    =?Utf-8?B?Y2RiaWdncw==?=, Mar 12, 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. Replies:
    0
    Views:
    635
  2. GridView Row Styling

    , Jun 15, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,753
  3. Replies:
    2
    Views:
    505
    bruce barker
    Mar 25, 2008
  4. Andre Ranieri

    Datagrid row height changes depending on number of items?

    Andre Ranieri, Dec 2, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    152
    Andre Ranieri
    Dec 3, 2003
  5. D
    Replies:
    0
    Views:
    196
Loading...

Share This Page