datagridview中的复选框选择事件 [英] check box selection event in datagridview

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

问题描述

注意它是windows应用程序。





在datagridview中设计如下;



note it is windows application.


Design in datagridview as follows;

Date          1             2           3            4
1/2/2013   check box   check box  check box   check box



在运行模式下自动加载表格复选框。




in run mode in the form load automatically all check box is checked .

select        Date          1             2         3            4 (Column Name)
check box   1/2/2013   check box   check box  check box   check box.





为1/2 / 2013,我取消选中2和3复选框,选中1和4复选框。

数据库1和4会话将保存。



假设为1/2/2013没有会话意味着当我从1到4中选中任何一个复选框,然后选中复选框以取消选中。



如何使用csharp。



for the 1/2/2013, i unchecked the 2 and 3 check box and 1 and 4 check box is checked.
in database 1 and 4 session will save.

suppose for that 1/2/2013 no session means when i select any one of the check box from 1 to 4, then select check box to be unchecked.

How can i do using csharp.

推荐答案

通过此链接



CheckBox.CheckedChanged事件 [ ^ ]



复选框已更改事件(C#) [ ^ ]
go through this link

CheckBox.CheckedChanged Event[^]

On checkbox changed event (C#)[^]


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

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