C#Windows数据网格视图 [英] C# windows data grid view

查看:136
本文介绍了C#Windows数据网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

这是在Windows窗体中使用几个选项卡.每个选项卡都包含数据网格视图,也使用单元格验证事件.如果我希望切换到另一个选项卡,则意味着单元格验证事件也具有通过功能.单元格验证事件.对不起,我的英语.

在此先感谢您.等待答复...

Hi Experts,

Here am using several tabs in windows form.each tab contains data grid view,am using cell validating event too.if i wish to swith to another tab means that cell validating event has too by pass.but its firing..how to by pass the cell validating event.sorry for my english.

thanks in advance.wait for reply...

推荐答案

当您单击选项卡时,您的控件仍将位于Grid单元格上. 因此,在Tab单击事件中,您需要将焦点设置在其他控件上.
When you click on the Tab,Your control will be still on the Grid cell.
So,In Tab click event you need to set the focus over other control.


这篇关于C#Windows数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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