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