1: 2: 3: 4: 5: 6: 7:
For Each i As DataGridViewRow In DataGridView1.Rows If Not i.Cells.Item(0).Value = branch Then DataGridView1.Rows.Remove(i) Else