I am creating a gridView
that allows adding new rows by adding the controls necessary for the insert into the FooterTemplate
, but when the Ob
I think this is what you need:
itemtext
insert controls
and the codebehind:
protected void OnRowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["style"] = "display:none";
}
}
But I do not understand why you are adding your "insert controls" to the footer instead of placing them below the grid.