BrightIdeasSoftware.VirtualObjectListView.UpdateFiltering C# (CSharp) Method

UpdateFiltering() protected method

Change the state of the control to reflect changes in filtering
protected UpdateFiltering ( ) : void
return void
        protected override void UpdateFiltering()
        {
            IFilterableDataSource filterable = this.VirtualListDataSource as IFilterableDataSource;
            if (filterable == null)
                return;

            this.BeginUpdate();
            try {
                int originalSize = this.VirtualListSize;
                filterable.ApplyFilters(this.ModelFilter, this.ListFilter);
                this.BuildList();

                //// If the filtering actually did something, rebuild the groups if they are being shown
                //if (originalSize != this.VirtualListSize && this.ShowGroups)
                //    this.BuildGroups();
            }
            finally {
                this.EndUpdate();
            }
        }