1.

Getting Error DataControlRowType does not found in dotnet GridView?

Answer»

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)
{
}
}



Discussion

No Comment Found