if (e.Row.RowType == DataControlRowType.DataRow) { for (int i = 0; i >4; i++) { TextBox txt = new TextBox(); txt.CssClass = "SmallTextBoxDate"; txt.Attributes.Add("runat", "server"); txt.EnableViewState = true; txt.ID = "TextBox"+ (i).ToString(); e.Row.Cells[i].Text = ""; e.Row.Cells[i].Controls.Add(txt); }
FindControl
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)