Visual Basic .net 2008显示数据 [英] Visual Basic .net 2008 display data

查看:56
本文介绍了Visual Basic .net 2008显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据VB .NET 2008中组合框的值显示从访问数据库到表单其他控件的数据?

How can I display data from an access database to other controls of the form depending on the value of a combobox in VB .NET 2008?

推荐答案

请看下面的页面,它描述了如何将数据数据绑定到DataGridView.
http://msdn.microsoft.com/en-us/library /fbk67b6z(v=vs.90).aspx#Y0 [
Please take a look at the following page, it describes how to databind data to the DataGridView.
http://msdn.microsoft.com/en-us/library/fbk67b6z(v=vs.90).aspx#Y0[^]

In your case you will need to bind the SelectedIndexChanged event of the combobox to a custom handler that will reconnect to a different datasource and then rebind the data.

Hope this helps you on your way.


看看这些链接:

http://support.microsoft.com/kb/821765 [ http://www.dreamincode.net/forums/topic/33904 -connecting-vb-forms-to-access-database/ [ http://p2p.wrox.com/ado-net/28703-how-vbulletin-net-connect-access-database.html [
希望这些链接中的任何一个对您有所帮助.
Take a look at those links:

http://support.microsoft.com/kb/821765[^]
http://www.dreamincode.net/forums/topic/33904-connecting-vb-forms-to-access-database/[^]
http://p2p.wrox.com/ado-net/28703-how-vbulletin-net-connect-access-database.html[^]

...

You''ll find much more information searching for "connect vb.net to access database" in google.

Hope any of those links help you.


这篇关于Visual Basic .net 2008显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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