datagrid视图复选框 [英] datagrid view checkboxes

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

问题描述

我的第一列上有一个带复选框的网格。

如果我点击datagridview中的单个或多个复选框,则应启用删除按钮。

此删除按钮不在网格内。它是网格外的一个单独的按钮控件。



点击删除按钮后应删除所选的行。



问候,Sarthak

I have a grid having check boxes on first column.
If i click single or multiple checkboxes present in the datagridview, "delete" button present should be enabled.
This delete button is not present inside grid. It is a separate button control outside the grid.

after clicking the delete button the selected rows should be deleted.

Regards,Sarthak

推荐答案

处理复选框检查更改事件,并在里面计算gridview中检查的复选框数量。如果count大于1,则启用按钮。
Handle the check box check change event and inside that count the number of check boxes checked inside gridview. If count is greater than 1, then enable the button.


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

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