gridview和下拉菜单 [英] gridview and dropdown

查看:101
本文介绍了gridview和下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个网格视图,并且在编辑模板中我需要放入一个下拉列表,该列表必须用查找表中的值预先填充.用户可以从dopdown中选择并更新它.我尝试使用sql进行操作数据源,但我收到错误消息,表明selectedvalue不在项目列表中.有人可以给我发送代码以在edititem模板中实现下拉菜单吗?

Hi,
I have a grid view and in the edit template i need to put in a dropdown list which has to be prepopulated with values from a lookup table.and the the user can choose from the dopdown and update it.I tried doing it using the sql data source but i get errors saying the selectedvalue is not in the item list. can anyone send me code to implement dropdown in the edititem template?

推荐答案

^ ]并检查其中的其他链接.
ASP.Net GridView Template DropDownList[^] and check the other links in there.


这篇关于gridview和下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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