DataGridView CheckBox列值 [英] DataGridView CheckBox Column value

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

问题描述

朋友,

我在datagridview中添加了一个复选框.当我单击(选择)复选框时,
如果复选框未选中,我需要答案.我的意思是对还是错.
如何获得此答案?

请帮帮我.

Hi Friends,

I added one checkbox in datagridview. When I click(select) the check box,
I need the answer if the checkbox is checked or not. I mean true or false.
How can I get this answer?

Please help me.

推荐答案

只需检查单元格的Value属性.

当心,可能是null,因此请在获取值之前进行测试.
Just check the Value property of the cell.

Beware it could be null so test for that before retrieving the Value.


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

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