如何在winforms C#中向网格视图添加下拉列表 [英] how to add dropdownlist to gridview in winforms C#
本文介绍了如何在winforms C#中向网格视图添加下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
i想要向网格视图添加下拉列表,我在sql中有4列表(ID,地址,名称,电话)我想添加ID到droplist
2.我想显示没有数据的网格我怎么能这样做?
注意:网格数据源与数据集连接,数据集从数据库中检索ID的值。
Hi
i want to add dropdownlist to gridview , i have table in sql with 4 columns (ID,address,name,phone) i want to add ID's to droplist
2. i want to display the grid empty without data how can i do this ??
Note : the grid datasource is connected with dataset that retrive the values of ID's from database .
推荐答案
参见..
http://www.aspdotnet-suresh.com/2012/05/bind -data-to-dropdownlist-in-gridview.html [ ^ ]
http://www.dotnetfunda.com/forums/thread536-how-to-add- A-下拉列表到GridView控件 - 和 - 如何 - to-add-a-datasource-to-d.aspx [ ^ ]
See..
http://www.aspdotnet-suresh.com/2012/05/bind-data-to-dropdownlist-in-gridview.html[^]
http://www.dotnetfunda.com/forums/thread536-how-to-add-a-dropdownlist-to-gridview-and-how-to-add-a-datasource-to-d.aspx[^]
这篇关于如何在winforms C#中向网格视图添加下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文