📅  最后修改于: 2022-03-11 14:48:42.429000             🧑  作者: Mango
private void txtSearch_TextChanged(object sender, EventArgs e)
{
DataView dv = table.DefaultView;
dv.RowFilter = "FirstName LIKE '" + txtSearch.Text + "%'";
dataGridView1.DataSource = dv;
}