For Each row As DataGridViewRow In dgFirst.Rows If (row.Cells.Item("Column2").Value.ToString().Contains(TextBox1.Text)) Then row.Visible = False End If Next
For Each row As DataGridViewRow In dgFirst.SelectedRows dgFirst.Rows.Item(row.Index).Visible = False Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)