This sample showcases the new Dynamic Filter feature of the Grid Grouping control. This filter implements a custom filter bar to be wired with the Grid Grouping control by replacing the default filter bar. The existing filter bar logic is extended to make the filter easy to use. This feature displays filtered results as you type each character.
Code to invoke the dynamic filter:
GridDynamicFilter filter = new GridDynamicFilter(); filter.WireGrid(gridGroupingControl1); //To remove dynamic filter filter.UnWireGrid(gridGroupingControl1);
The appearence of the Filter is classified into two based on its leagcay styles. If the LegacyStyle is disabled then the Dynamic Filter will be appeared as a Context Menu and the FilterDropDown buttons will be painted with images. Else the existing appearance as ListBox and normal dropdown button will be maintained in the Grid
Below is the FilterBar with Grid's Legacy Style (Model.EnableLegacyStyle) disabled.
The Filter button in the filter bar displays a list of available compare operators in a context menu. The selected operator will then be associated with the value present in the filter-bar cell to form a filter string.
Filter With LegacyStyles