3
Answers

Header to gridview column

Ramco Ramco

Ramco Ramco

1y
424
1

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)