datagridview.cellvalidating [英] datagridview.cellvalidating

查看:100
本文介绍了datagridview.cellvalidating的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我已经设置了datagridview.cellvalidating事件.我希望用户在单元格中输入,并且当出现错误时,如果用户按下"TAB"键,光标将无法离开单元格.或在第一次点击其他位置.

但是我发现它不是第一次起作用.直到我第二次单击同一单元格时,它才会触发阻止用户离开该单元格并显示错误消息的操作.

有什么解决方案吗?

解决方案

您可以发布具有单元格验证代码吗?


Dear all,

I have set the datagridview.cellvalidating events. I want the user inputing in the cell and when error, the cursor cannot leave the cell when user key "TAB" or click in other where in the first time.

But I find that it does not work in the first time. Until when I click the same cell in the second time, it trigger the action preventing user from leaving the cell and show the error message.

Is there any solution??

解决方案

Can you post the cellvalidating coding that you have?


这篇关于datagridview.cellvalidating的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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