Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 516.6k

Header to gridview column

Jun 9 2023 4:17 AM

Hi

  I have below code in Gridview RowDataBound. I want to give header also the name like Date.

TableCell cell = new TableCell();
                TextBox txtColumn = new TextBox();
                txtColumn.ID = "txtSessionDate";
                txtColumn.CssClass = "form-control daterange-single";
                txtColumn.Font.Size = new FontUnit("10px");
                cell.Controls.Add(txtColumn);
                e.Row.Cells.Add(cell);

Thanks


Answers (3)