I decided with code below
public class WebGridView : System.Web.UI.WebControls.GridView
{
protected override void onRowDataBound(GridViewRowEventArgs e)
{
base.OnRowDataBound(e);
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseout",
"this.style.backgroundColor='white'");
e.Row.Attributes.Add("onmouseover",
"this.style.backgroundColor='#D7D8B8'");
e.Row.Attributes.Add("style", "cursor:hand");
}
}
}
"Leandro de Souza" wrote:
I am developing a WebControl derived from a GridView
As to make to codify the RowDataBound event of the GridView in the WebControl?