tags:

views:

847

answers:

1

Hi all,

The code below works fine and filters the rows correctly but how would I restore the table to its original state?

DataTable table = this.dataGridView1.DataSource as DataTable;
table.DefaultView.RowFilter = comboBox.Text + " LIKE '%" + strName + "%'";

Thanks

A: 

try this:

table.DefaultView.RowFilter = string.Empty
Muad'Dib
Worked great, thanks.