动态列到Gridview [英] Dynamic Columns to Gridview

查看:93
本文介绍了动态列到Gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个Drop Down和一个Gridview,基于下拉列表中的选定值,我需要将相应的日期绑定到Gridview。我已经在Gridview设计中声明了Gridview列(autogeneratecolumns = false)。现在我需要在gridview中再添加一列。如何将此新列添加到gridview?

Hi All,

I have a Drop Down and a Gridview , based on the selected value in drop down I need to bind the appropriate date to the Gridview. I have declared the Gridview columns already in the Gridview design (autogeneratecolumns= false). Now I need to add one more column to the gridview. How can i add this new column to gridview?

推荐答案

请尝试以下链接:

动态地将BoundField和TemplateField列添加到ASP.Net中的GridView [ ^ ]
Try the following link:
Dynamically add BoundField and TemplateField Columns to GridView in ASP.Net[^]


您可以查看以下链接

http://www.aspsnippets.com/Articles/Dynamically-add-BoundField-and-TemplateField-Columns-to-GridView-in-ASPNet .aspx [ ^ ]



向GridView添加动态列 [ ^ ]



一个简单的搜索可以获取许多相关链接



希望这有帮助
You can check the below links
http://www.aspsnippets.com/Articles/Dynamically-add-BoundField-and-TemplateField-Columns-to-GridView-in-ASPNet.aspx[^]

Dynamic columns addition to GridView[^]

A simple search would have fetched many related links

Hope this helps


这篇关于动态列到Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆