【发布时间】:2009-07-19 02:13:30
【问题描述】:
当我使用 Delphi 进行开发时,我总是调用 DataSet.CheckBrowseMode() 以允许绑定控件将其挂起的更改应用到 DataSet。我一直在.NET中寻找类似的方式
我试过了
// When the user press Ctrl-S
// Apply any pending edit
this.TheDataBindingSource.CurrencyManager.EndCurrentEdit();
// then save the data
this.SaveData();
与 Delphi DataSet.CheckBrowseMode() 不同,此代码在 TextBox 内有未决更改时不起作用。在按 Ctrl-S 保存数据之前,我的用户必须通过 将焦点从文本框移开。
【问题讨论】:
-
这是一个关于这个主题的非常好的文档:windowsclient.net/Samples/Go%20To%20Market/Data%20Binding/…
标签: .net winforms data-binding