0

Hi I am creating GridView column dynamically like this:

GridViewColumn idColumn = new GridViewColumn();
grdMain.Columns.Add(idColumn).

Now I want to attach ColumHeader to create the column dynamically. I did:

GridViewColumnHeader idColumnHeader = new GridViewColumnHeader();

Now how can I attach this Header to idColumn?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
jolly
  • 137
  • 1
  • 4
  • 15

1 Answers1

2

You can simply set the Header property, like

idColumn.Header = idColumnHeader;
kiwipom
  • 7,639
  • 37
  • 37