1
Answer

Text Control in Gridview

Ramco Ramco

Ramco Ramco

1y
432
1

Hi

  I have written below code in Gridview . I want to set Dafault value = "". 

When i write this - e.Row.Cells[e.Row.Cells.Count - 1].Text = ""; it make it as readable

TextBox txtDate = new TextBox();
                txtDate.CssClass = "form-control";
                txtDate.DataBind();
                e.Row.Cells[e.Row.Cells.Count - 1].Controls.Add(txtDate);

Thanks

Answers (1)