| Getting Error DataControlRowType does not found in dotnet GridView?
Getting this error because Namespace is not define to access DataControlRowType Enum. So need to define System.Web.UI.WebControls Namespace. After that write below code
Using System.Web.UI.WebControls
Using System.Web.UI.HtmlControls
...........
...........
...........
protected void GrdTask_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
}
}
| | |