Hi
I have below code but column is not showing textbox
grdPlanning.DataSource = dt; int columnIndex = dt.Columns.Count - 1; // Index of the Remarks column foreach (GridViewRow row in grdPlanning.Rows) { TableCell cell = new TableCell(); TextBox txtColumn = new TextBox(); txtColumn.ID = "txtSessionDate"; txtColumn.Text = ((TextBox)row.Cells[columnIndex].Controls[0]).Text; cell.Controls.Add(txtColumn); row.Cells.Add(cell); } grdPlanning.DataBind();
Thanks