且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Gridview AutoGenerateColumns = True

更新时间:2023-10-04 22:08:58

1。隐藏在html中

2.你的意思是数据绑定吗?
1. Hide it in the html
2. Do you mean data binding?



AutoGenerateColumns = True表示gridview因为我必须在运行时添加列。
AutoGenerateColumns=True for a gridview as i have to add columns at runtime.



我的理解是,如果您自己手动添加列而不使用数据绑定,则需要将该属性设置为false。

It was my understanding that if you are manually adding the columns yourself and not using a databind, you would want that property set to false.


我们可以在Gridview的rowcreate事件上创建一个控件。

帮助我技术人员.....
Can we create a control on rowcreate event of Gridview.
Help me techies.....