bindingNavigator不更新mdb [英] bindingNavigator not updating mdb

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

问题描述

尽管绑定导航器应该在删除记录时与mdb数据库一起更新datagridview

解决方案

您的设置是什么?大多数.NET数据绑定都是在断开连接的情况下发生的,这意味着您需要明确地做一些事情以将更改提交到数据库.确切的性质会因您的来源而异-例如LINQ vs DataSet/DataAdapter vs定制等.

如果您使用的是DataSet,请在适配器上调用Update.


I though the bindingNavigator is suppose to update the datagridview along with the mdb database when you delete a record

解决方案

What is your setup? Most .NET data-binding happens disconnected, meaning you need to explicitely do something to commit the changes to the database. The exact nature will vary depending on your source - i.e. LINQ vs DataSet/DataAdapter vs bespoke etc.

If you are using a DataSet, then call Update on your adapter.


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

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