下面的
代码工作正常,并正确过滤行,但如何恢复表到其原始状态?
DataTable table = this.dataGridView1.DataSource as DataTable;
table.DefaultView.RowFilter = comboBox.Text + " LIKE '%" + strName + "%'";
谢谢
尝试这个:
table.DefaultView.RowFilter = string.Empty
原文链接:https://www.f2er.com/csharp/93654.html