📜  c# datagridview 搜索过滤器 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:42.429000             🧑  作者: Mango

代码示例1
private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            DataView dv = table.DefaultView;
            dv.RowFilter = "FirstName LIKE '" + txtSearch.Text + "%'";
            dataGridView1.DataSource = dv;
        }