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. Advertisements

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. carlos perez
    Replies:
    0
    Views:
    552
    carlos perez
    Jun 8, 2004
  2. Replies:
    0
    Views:
    790
  3. GridView Row Styling

    , Jun 15, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,835
  4. Replies:
    2
    Views:
    724
    bruce barker
    Mar 25, 2008
  5. 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:
    260
    Andre Ranieri
    Dec 3, 2003
  6. John Mackerras

    Template Column data depending on form data

    John Mackerras, Nov 15, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    234
    John Mackerras
    Nov 15, 2004
  7. sauce
    Replies:
    0
    Views:
    368
    sauce
    Apr 12, 2005
  8. D
    Replies:
    0
    Views:
    488
Loading...