Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each row As DataGridViewRow In DataGridView1.Rows If row.Cells(0).Value = ComboBox1.Text Then row.Visible = True row.Selected = True Else row.Visible = False row.Selected = False End If Next End Sub