Changing row backcolor based on a column value from dataset

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top