foreach (TableCell tb in e.Row.Cells) { int cellIndex = e.Row.Cells.GetCellIndex(tb); if (cellIndex != 0) { TextBox Txt = new TextBox(); if (tb.Text != " ") Txt.Text = tb.Text; Txt.ID = "txt_" + i; Txt.Width = 30; i++; tb.ID = "tb_" + i; Txt.EnableViewState = false; tb.EnableViewState = false; tb.Controls.Clear(); tb.Controls.Add(Txt); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)