Hi,
I am using WebDataGrid 9.1 with C# 3.5, the below code is not working. The color Red appears briefly when I click on the grid for the very first time on the clicked cell and then never works again. Any help please?protected void wdgDetail_OnInitializeRow(object sender, RowEventArgs e){if (e.Row.Items[0].Value.ToString() == "CONVERTED"){e.Row.CssClass = "Class1";
e.Row.Items[0].CssClass = "Class1";
e.Row.Items[1].CssClass = "Class1";
e.Row.Items[2].CssClass =
"Class1";
e.Row.DataBind();}
here is the Class1 definition:
.Class1{background-color:Red;}
Corret, e.Row.DataBind() is not required.
I have installed WebDataGrid hot fix 9.1.20091.2087 and my code is working now without any changes.
The cell css classes should have selectors:
TBODY > TR > TD.Class1{background-color:Red;}
Also there is no need to call e.Row.DataBind()