this.smartClientDataSet.User.Rows[userDataGrid.CurrentRowIndex][1] = "111";
this.userTableAdapter.Update(this.smartClientDataSet.User);
this.smartClientDataSet.AcceptChanges();说明: smartClientDataSet,userTableAdapter都是通过vs生成的数据源以及数据适配器。
执行语句就报错: "Update requires a valid UpdateCommand when passed DataRow collection with modified rows"
请高手指点。
this.userTableAdapter.Update(this.smartClientDataSet.User);
this.smartClientDataSet.AcceptChanges();说明: smartClientDataSet,userTableAdapter都是通过vs生成的数据源以及数据适配器。
执行语句就报错: "Update requires a valid UpdateCommand when passed DataRow collection with modified rows"
请高手指点。
解决方案 »
- 动易系统使用的后台html在线编译器是什么??
- 我在cs封装了checkbox ,如果checkbox 设置了checked =checked 这样我取到得值就是全部的,我现在想得到某一个值,我改用chec
- 再次紧急求救
- GDI+中发生一般性错误
- 保存程序状态
- 有没有人用过C# PropertyGrid这个控件,请问这个控件怎样动态设置一个属性是否可用?
- 小问题请教大家,我能通过 if(result==null) 来判断是否返回了数据吗?
- 这次我说的很清楚 ,看看楼大侠 急 啊
- 这个题怎么做?
- DataSet读入XML的关系(relation):错在哪里?(一晚上都没解决,郁闷中:(
- 跪求 c# 多线程
- 网络(局域网)的问题
例子看看