1
我怎样才能得到我的FOREACH我的DataGridView的下一行的值的值我怎样才能让我的DataGridView的下一行
foreach (DataGridViewRow row in dataGridViewSelection.Rows)
{
if ((bool)((DataGridViewCheckBoxCell)row.Cells[3]).Value)
{
do
{
list.Add(row.Cells[1].Value.ToString());
}
while (row.Cells[2].Value == the next row.Cells[2].Value-->of the next row);
}
}
我想获得在同一单元格的值下一排,我可以比较它们。 谢谢
非常感谢,非常感谢 – pharaon450