开发者

How to add GridViewColumnHeader to GridViewColumn dynamically?

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?


You can simply set the Header property, like

idColumn.Header = idColumnHeader;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜