使用数据绑定动态下拉列表并绑定到动态gridview [英] Bind dynamic dropdown with data and bind to dynamic gridview
本文介绍了使用数据绑定动态下拉列表并绑定到动态gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个动态gridview,我想在某些列中绑定动态下拉列表,例如column3,column4和数据,当我点击编辑按钮时,它会转换为带有数据的下拉列表
怎么可能
I have a dynamic gridview, and i want to bind dynamic dropdown in some columns like column3,column4 with data and when i click edit button it will converted lable to dropdown with data
how it is possible
推荐答案
请参考下面的链接。它将帮助您解决问题
http:// chalaki .com / how-to-bind-a-dropdownlist-with-edititemtemplate-in-the gridview / 652 / [ ^ ]
谢谢
Please refer the link below.it will help you to solve your problem
http://chalaki.com/how-to-bind-a-dropdownlist-with-a-edititemtemplate-in-the-gridview/652/[^]
Thanks
你的答案是正确的,但我的问题是我从数据库中检索数据并绑定到动态gridview。在那个gridview中,我没有使用boundfields和itemtemplate,我该怎么做。
Your Answer is correct,but my problem is i am retrieving data from database and bind to dynamic gridview. In that gridview i am not using boundfields and itemtemplate,How can i do this.
这篇关于使用数据绑定动态下拉列表并绑定到动态gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文