c# datagridview search filter
private void txtSearch_TextChanged(object sender, EventArgs e)
{
DataView dv = table.DefaultView;
dv.RowFilter = "FirstName LIKE '" + txtSearch.Text + "%'";
dataGridView1.DataSource = dv;
}