I need to go through a column of my DataGridView called "code" when I insert one in the textbox, if I find it simply that the column called "Captured" of the same row increases by 1, otherwise it does not do anything, it's like a supermarket box, I'm checking an order with a barcode reader
If someone could help me with some idea of how to do it (I do not need all the code) I would appreciate it very much, I am very new with this, thanks in advance
Edit 12/18/2018
Thank you very much, modify a code that you told me below, in the end it worked like this:
foreach (DataGridViewRow fila in dataGridView1.Rows)
{
String a = null;
a = Convert.ToString(fila.Cells[0].Value);
if (a == txtCodigo.Text)
{
int n = Convert.ToInt32(fila.Cells[3].Value);
n = n + 1;
fila.Cells[3].Value = n;
}
}