How to reset bindingsource filter to nothing

前端 未结 4 443
半阙折子戏
半阙折子戏 2021-01-24 12:55

Using BindingSource on LINQ to SQL, and having implemented a BindingList in my project, I have to use a Textbox to filter rows in a

4条回答
  •  北海茫月
    2021-01-24 13:19

    http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.filter.aspx

    as shown there the bindingsource.Filter is a string value. And default is null, so just do this:

    productBindingSource.Filter = null;
    

    its possible though that you have to do something to update your UI but usually the bindingSource takes care of that itself.

提交回复
热议问题