在列表框中显示Access 2013数据库数据 [英] Display Access 2013 Database Data in List Box

查看:80
本文介绍了在列表框中显示Access 2013数据库数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对列表框有疑问。如何在列表框中显示Access数据库中的数据(如显示列下的每一行)。我目前正在开发一个显示网站信息的项目(对于我制作的网站),我已经创建了包含所有信息的数据库并将其添加到我的项目中(顺便说一下,我正在使用Visual Studio 2012 Ultimate和使用VB.NET Forms Applications)。在数据库中,列的一个标题是网站名称。如何在列表框中显示此列下的所有项目?而且,虽然我问这个问题,我如何在文本框中显示数据库中的数据(用户点击一个按钮,导致网站信息显示在文本框中,上面有标签,如'网站创建日期','评级',所有这些都在数据库中作为列名称??

I have a question about List boxes. How would you display data from an Access database in a list box (like each row under a column is displayed). I am currently working on a project that displays website information (for websites that I have made), I've already made the database that has all of the information and added it to my project (by the way, I'm using Visual Studio 2012 Ultimate and working with VB.NET Forms Applications). In the database, one title for a column is 'Website Name'. How would I display all of the items under this column in a list box? And also, while I'm asking this, how would I display data from the database in text boxes (the user clicks a button, causing the website information to show in text boxes with labels above them, like 'Website Creation Date', 'Rating', all of which are in the database as column names) ?

推荐答案

选中此链接并滚动到数据视频系列上的表格部分.... />
http://msdn.microsoft.com/en-US/vstudio/bb466226。 aspx [ ^ ]



您将找到许多有趣的信息......您可以在Visual Studio 2012中完成您的要求而不需要编写一行代码:) />


您可以创建一个新的数据源,然后将一个列表框添加到表单中,并将数据绑定到数据源。
Check this link and scroll to Forms over Data Video Series section....
http://msdn.microsoft.com/en-US/vstudio/bb466226.aspx[^]

You will found a lot of interesting information ... You can do what you are asking for in visual studio 2012 with out writing a single line of code :)

You can create a new data source and then add a listbox to the form and data bound it to the data source.


这篇关于在列表框中显示Access 2013数据库数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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