And now it's time to implement the UpdateCommand event handler.
现在是时候实现UpdateCommand事件处理程序了。
Otherwise, a command object is created and configured after the UpdateCommand property of the data source object.
否则,在数据源对象的UpdateCommand属性后创建和配置一个命令对象。
Finally, consider that if UpdateCommand isn't defined, CanUpdate returns false and an exception is thrown if you try to submit changes.
最后,考虑这种情况:如果没有定义updatecommand,却提交更改,那么canupdate返回值为假,并引发一个异常。
应用推荐