//Add new row for or each row in girdview // C# protected void gvUsersL_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { GridViewRow g = new GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal); //creating table Cells TableCell tCell = new TableCell(); tCell.Text = table; //Add Cells g.Cells.Add(tCell); tCell.ColumnSpan = e.Row.Cells.Count; //Set Color for Empty Cell g.CssClass = "bgi_1"; Table tbl = e.Row.Parent as Table; //add rows tbl.Rows.Add(g); } }
//Then Update: for (int i = 0; i < gvUsersL.Rows.Count; i++) { //update here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)