dynamic stylesheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datalist being displayed as a table with 3 columns, the end user
would like to see the tables have different background colors based on model.

ex:
if model is chevy then the table is blue
if BMW then silver
if mazda then red

how can i accomplish this and can it be done?
VB.NET
 
Do you mean setting different background colors for individual rows? Then
you should use ItemDataBound event in which you can change the background
color or CssStyle for the item (row) depending on item data.

Eliyahu
 
Back
Top