当用户单击“取消"按钮时,如何在DataGridView中取消验证? [英] How do I cancel validating in a DataGridView when a user clicks the Cancel button?

查看:106
本文介绍了当用户单击“取消"按钮时,如何在DataGridView中取消验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CellValidating-eventhandler验证了DataGridView,效果很好.但是,我想避免在用户按下取消"按钮时进行验证.在序列验证中,发生在事件CancelButton.Clicked之前.有什么想法吗?

I validate a DataGridView with the CellValidating-eventhandler.That works fine. However, I want to avoid validating when the user presses the Cancel button. In the sequence validation occurs before the event CancelButton.Clicked. Any ideas?

推荐答案

您有没有解决的办法?我在详细信息视图中也遇到类似的问题.美中不足的似乎是数据绑定.
Did you ever get a resolution to this? I have a similar problem with a details view. The fly in the ointment seems to be the databindings.


这篇关于当用户单击“取消"按钮时,如何在DataGridView中取消验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆