int count = 0;
for (int i = 0; i < this.TableData.Rows.Count; i++)
{
if (this.TableData.Rows[i].Cells[0].FormattedValue.ToString() == "True")
{
count++; }
}
MessageBox.Show(count.ToString());
遍历DataGridView中CheckBox列的方法
最新推荐文章于 2023-08-09 14:41:42 发布