How to loop each row that readed? in my code, the row won\'t bind to next row because of the same productID, so the datagridview won\'t move to new row, it still in the same
You could loop through DataGridView using Rows property, like:
foreach (DataGridViewRow row in datagridviews.Rows)
{
   currQty += row.Cells["qty"].Value;
   //More code here
}
                                                                        Best aproach for me was:
  private void grid_receptie_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
    {
        int X = 1;
        foreach(DataGridViewRow row in grid_receptie.Rows)
        {
            row.Cells["NR_CRT"].Value = X;
            X++;
        }
    }