protected void ItemDataBound(object sender, GridViewRowEventArgs e) { if (Childs < 5) { grdname.Parent.Controls.RemoveAt(e.Row.RowIndex); } }
void gridView_RowCommand(Object sender, GridViewCommandEventArgs e) { if(e.CommandName=="Remove") { var childs= Int32.Parse(e.CommandArgument); if(childs<5) gridView.DeleteRow(id); } }
e.row.visible=false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)