How to reset bindingsource filter to nothing

前端 未结 4 447
半阙折子戏
半阙折子戏 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:29

    I assume you test if textbox is empty in TextChanged event. Maybe your method is not being called when Text length = 0. I don't remember exactly why but i experienced this case before.

    If you are using a BindingList you wrote, provide code. RemoveFilter, setting Filter to null or empty string has always worked for me.

提交回复
热议问题