【问题标题】:Checking value of DataGridViewCheckBoxColumn [duplicate]检查 DataGridViewCheckBoxColumn 的值 [重复]
【发布时间】:2013-12-22 02:54:12
【问题描述】:

我有一个DataGridView,其中一列是DataGridViewCheckBoxColumn。如何检查列单元格内的CheckBox是否被选中?

【问题讨论】:

标签: c# datagridview


【解决方案1】:

试试这个:

        bool status=(bool)dataGridView3.Rows[0].Cells[0].Value;
        if (status)
        {
            MessageBox.Show("Checked");
        }
        else
        {
            MessageBox.Show("Not Checked");
        }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-16
    • 1970-01-01
    相关资源
    最近更新 更多