想知道datagridview事件的一些工作 [英] Want to know Event of datagridview for some work

查看:49
本文介绍了想知道datagridview事件的一些工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends ..

我想做一些类似以下的工作

假设Datagridview由两列组成(Attendence1和Attendence2为Checkbox类型)

我希望用户必须同时检查两列都为真,然后他才专注于下一行.

为此,我尝试了 RowLeave Event ,但是,当用户标记Attendence1,attendence2,然后他单击/Hit enter移至下一行时,它显示的消息是第一个标记列attence2.当我在带有断点的代码中查找时,我看到Attence2列的值为false,但是我将其标记为true.

告诉我应该使用哪个事件,当我离开行时立即检查哪个事件.
谢谢

Hi Friends..

I want to do some work similar to following

suppose Datagridview consist of two columns (Attendence1 , Attendence2 of Checkbox type)

I want user must check both columns true then he focus to next row.

For this i tried RowLeave Event but, when user mark Attendence1 ,attendence2 and then he click / Hit enter to move to next row then it is showing message that first mark column attendence2 . When i look in code with breakpoint, then i saw value of attendence2 columns is false, but i have marked true.

Tell me which event i should use, which check instantly when i leave row.
Thanks

推荐答案

http://social.msdn.microsoft.com/Forums/zh-CN/csharpgeneral/thread/ba271fd6-9715-47ef-b9b5-568238880153 [

这篇关于想知道datagridview事件的一些工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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