Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 527.9k

Text Control in Gridview

May 5 2023 6:04 AM

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)