Monday, August 16, 2010

How to gchange Gridview row Color

if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.color='blue'";
e.Row.Attributes["onmouseout"] = "this.style.color='black'";
e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.GridViewProp, "Select$" + e.Row.RowIndex);

}