如何在网格视图内从数据库填充下拉列表. [英] How to populate drop downlist from database inside the grid view.

查看:90
本文介绍了如何在网格视图内从数据库填充下拉列表.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想从网格视图内的数据库填充组合框.我正在使用asp.net,C#.我在数据库表中有数据,我想将数据从数据库表填充到组合框,此组合框位于网格视图中.请给我解决方案.我会感谢你的.

谢谢
PBN.

Hi All,

I want to populate combo box from database inside the grid view. I am using asp.net, C#. I have data in database table I want to populate data from database table to combo box this combo box is in grid view. Please give me the solution for this. I will be thankful to you.

Thanks
PBN.

推荐答案


使用gridview的RowDataBound事件,找到dropdownlist控件并将其绑定.
检查CP文章:访问GridView内的DropDownList [ ^ ]




--Amit
Hi,
Use RowDataBound event of gridview, Find the dropdownlist control and bind it.
Check the CP article: Accessing a DropDownList inside a GridView[^]




--Amit


这篇关于如何在网格视图内从数据库填充下拉列表.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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