怎样在后台代码中触发DataForm中取消按钮的点击事件(有图),该怎么解决

怎样在后台代码中触发DataForm中取消按钮的点击事件(有图)

如图,求教各位,怎样在后台代码中触发DataForm.CancelButtonContent按钮的点击事件呢?
就是说在有需要的情况下让它自动点击,而不是手动触发

------解决方案--------------------
不明白楼主的意思,自动点击是什么意思呢?

学习Dataform,请看:

http://silverlightchina.net/html/tips/2011/0607/8177.html
http://silverlightchina.net/html/tips/2010/0102/523.html
http://silverlightchina.net/html/tips/2010/0102/524.html
http://silverlightchina.net/html/tips/2010/0102/525.html
http://silverlightchina.net/html/tips/2010/0922/2003.html
------解决方案--------------------
Dataform中有两个方法是CommitEdit和CancelEdit。调用CommitEdit方法是提交更新,调用CancelEdit方法是取消更新。你的确定和取消按钮不就是实现这两个功能嘛。