public void SearchFilter(string searchStr) { if (searchStr == "" && SearchText == "") { return; } if (searchStr == "") { MultipleFilter.Filter -= new FilterEventHandler(MultipleFilter.filters.Search); //LibraryView.View.Refresh(); return; } SearchText = searchStr; using (LibraryView.DeferRefresh()) { MultipleFilter.Filter -= new FilterEventHandler(MultipleFilter.filters.Search); MultipleFilter.Filter += new FilterEventHandler(MultipleFilter.filters.Search); } }