Changing row backcolor based on a column value from dataset

  • Thread starter Thread starter Chris Bond
  • Start date Start date
C

Chris Bond

I have a asp vb.net webform that uses a dataset to bind from a mssql backend
via a stored proc and displays its results in a datagrid.

In one of the datagrid columns i have a field called status - if this field
is "READ" i want the backcolor blue, if it is "IMPORTANT" i want the
backcolor red otherwise i want the backcolor "lightblue" by backcolor i mean
the whole row.

Any ideas how to do this?

Kind Regards,
Chris Bond
 
Back
Top