Hi,
When render a databound ListView I want to dynamically set the background colour of each row depending on the results, in my case Red, Orange and Green.
protected void ListView1_ItemCreated(object sender, ListViewItemEventArgs e)
{
DataRow myRow;
DataRowView myRowView;
myRowView = (DataRowView)e.Item.DataItem;
myRow = myRowView.Row;
if (myRow[2].ToString().CompareTo("") == 1)
{
// Colour coding here..
}
}
Is it possible to reach the TR tag for each row to change the style?
Many thanks, Stefan