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);

}
 

Action Method in Mvc

In this section, you will learn about the action method of controller class. All the public methods of a Controller class are called Act...