Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 517.6k

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)