从表单访问数据库 [英] Database access from a form

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

问题描述

如何连接到数据库并显示/更新表单的UI内容?

How do I connect to a database and display/update the UI content of a form?

推荐答案

有许多方法可以执行此操作,具体取决于您的UI.有关使用DataGridView 控件的典型示例,请参见:

http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx [ ^ ]
There are many ways to do this depending on your UI. For a typical example that uses a DataGridView control, see:

http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx[^]


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

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