winform控件DataGridViewCheckBoxCell
1.设置值(选中或不选中):
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)row.Cells[0];
cell.Value = cbxSelectAll.Checked;//直接赋值bool值
2. 获取值(true / false)
Convert.ToBoolean(cellCbx.Value) //转换成bool值
winform控件DataGridViewCheckBoxCell
1.设置值(选中或不选中):
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)row.Cells[0];
cell.Value = cbxSelectAll.Checked;//直接赋值bool值
2. 获取值(true / false)
Convert.ToBoolean(cellCbx.Value) //转换成bool值