从数据源更新数据集 [英] Updating a dataset from a data source

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

问题描述

是否有一种简单方法可以动态更新SQL或Access数据库中的数据集,而无需不断调用Fill方法?

我的应用程序只需要显示来自数据库的数据,而该数据正在从一个完全独立的应用程序中不断更新.我的几个控件是与数据集进行数据绑定的TrackBar,并且Fill方法实际上使指标跳来跳去",而不管其数据是否已更改.

谢谢.

Is there a simple way to dynamically update a dataset from either an SQL or Access database without constantly invoking the Fill method?

My application needs to merely display data from a database that is constantly being updated from a completely separate application. Several of my controls are TrackBars that are databound to the dataset, and the Fill method really makes the indicator "jump around", regardless of whether it''s data has changed.

Thanks.

推荐答案

使用WPF,它会自动执行.当然,它只是要调用数据库并索要数据,这正是Fill所做的.没有一种从数据库中获取数据而不调用它的神奇方法,不.
Use WPF, it does it automatically. Of course, it''s just going to call the database and ask for the data, which is what Fill does. There''s no magic way to get data from the DB without calling it, no.


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

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