Gridview AutoGenerateColumns = True [英] Gridview AutoGenerateColumns=True
问题描述
希望找到解决方案,
我的要求是,我为gridview设置了AutoGenerateColumns = True,因为我必须在运行时添加列。
我的第一个问题是:如何隐藏列?
我的第二个问题是:我可以在运行时添加列而不执行AutoGenerateColumns = True。
Plz建议任何替代方案。
提前提前
Hope to find the Solution,
My requirment is, I have set AutoGenerateColumns=True for a gridview as i have to add columns at runtime.
My first question is: How to hide a column ?
And my second question is: Can i add the columns at runtime without doing AutoGenerateColumns=True.
Plz Suggest me anykind of alternatives.
Thnks in advance
推荐答案
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.....
这篇关于Gridview AutoGenerateColumns = True的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!