У меня есть два вида данных:
datagridView1, с полями A и B (ячейки [0], ячейки 1 ):
![enter image description here](https://i.stack.imgur.com/yh5ej.png)
datagridView2 (Cells[0], Cells[1], Cells[2]):
![enter image description here](https://i.stack.imgur.com/Ze8dl.png)
Я хотел бы сравнить значение между двумя таблицами, и если:
- the value in datagridView1.rows[i].Cells[0].value = datagridView2.rows[j].Cells[0].value AND the value in datagridView1.rows[i].Cells[1].value = datagridView2.rows[j].Cells[1].value THEN write in datagridView1.rows[i].Cells[2].value the value from the third column in datagridView2:
![enter image description here](https://i.stack.imgur.com/RLZSr.png)