从访问数据库填充datagridview中的组合框 [英] Populating a combo-box within datagridview from an access database

查看:70
本文介绍了从访问数据库填充datagridview中的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



所以使用VS GUI设计了一个datagridview表,你可以在这里看到:



https://www.dropbox.com/s/vft2xpw2f3ezfe6/input_screen.JPG [< a href =https://www.dropbox.com/s/vft2xpw2f3ezfe6/input_screen.JPG\"target =_ blanktitle =New Window> ^ ]



我现在要做的是使用来自访问数据库的数据填充产品名称列下的组合框。完成后,该产品的描述及其单价也应填入相应的列中。



我目前没有涉及此数据网格的代码所以任何帮助都会受到极大的关注。谢谢。

解决方案

我建​​议你从这里开始:从.NET应用程序访问Microsoft Office数据 [ ^ ]

Hi all,

So designed a datagridview table using the VS GUI which you can see here:

https://www.dropbox.com/s/vft2xpw2f3ezfe6/input_screen.JPG[^]

What I'm trying to do now is to populate the combobox under the 'Product Name' column with data from my access database. Once that's done the description for that product and its unit price should be populated in the appropriate columns as well.

I have no code which involves this datagridview at the moment so any help would be hugely appriciated. Thanks.

解决方案

I would suggest you to start here: Accessing Microsoft Office Data from .NET Applications[^]


这篇关于从访问数据库填充datagridview中的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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