string staffids = "";
            foreach (DataGridViewRow row in this.dataGridView1.Rows)
            {
                if (Convert.ToBoolean(row.Cells[0].Value))
                {
                    staffids += row.Cells[1].Value.ToString() + ",";
                }
            }我这个dataGridview第一列为checkbox,假如说现在有a,b,c,d四行,我选中a,b。通过断点看到只有a被选中,如果我之选中a那么运行程序后,发现a没有被选中。
这是为什么 ? 应该在么办?  谢谢指教!