且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法通过XSD架构更新数据库

更新时间:2023-02-08 17:48:40

我使用的网格版本略有不同,但也许您也可以使用它:

对于网格(数据源= mdlocationsDataSet和datamember =区域),我只需运行update命令即可.

对于多个控件(组合键),我正在使用类似

this.BindingContext [mdlocationsDataSet.regions] .EndCurrentEdit();
regionsTableAdapter.Update(mdlocationsDataSet.regions);

如果您的行状态为修改",则最终在更新命令之前进行测试
I''m using a bit different version of grid,but maybe you can use it too:

for a grid (with datasource = mdlocationsDataSet & datamember = regions) I just run the update command and it works.

for multiple controls (combos) I''m using something like

this.BindingContext[mdlocationsDataSet.regions].EndCurrentEdit();
regionsTableAdapter.Update(mdlocationsDataSet.regions);

Eventualy test before update command if your rows state is "modified"