How to disable RowFilter

S

sg_pl

Hi,

I'have RowFilter in my aplication:

DataView view = (DataView)this.klienciBindingSource.List;
view.RowFilter = string.Format("IMIE LIKE '%{0}%'", textBox1.Text);

and when I change text in textBox1 the dataGrid is filtering, but when I
clear textBox in the dataGrid I'have only this row where field IMIE is
not empty. How to Disable this RowFilter or reset datagrid to default view?

Thank You in advance

Sebastian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top