You're using a buggy control (DataForm) and call CancelEdit() and in some scenarios it doesn't cancel. You pull some of your hear out. How to workaround this?

有帮助吗?

解决方案

Call BeginEdit() immediately before you call CancelEdit(). Hooray!

其他提示

The object binded to your dataForm have to implement IEditableObject. Then the CancelEdit call will work

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top