Click or drag to resize

DataGridFilterColumnControl Class

This class is the control hosting all information needed for filtering of one column. Filtering is enabled by simply adding this control to the header template of the DataGridColumn.
Inheritance Hierarchy

Namespace:  DataGridExtensions
Assembly:  DataGridExtensions (in DataGridExtensions.dll)
Syntax
public class DataGridFilterColumnControl : Control, 
	INotifyPropertyChanged

The DataGridFilterColumnControl type exposes the following members.

Constructors
  NameDescription
Public methodDataGridFilterColumnControl
Initializes a new instance of the DataGridFilterColumnControl class.
Top
Properties
  NameDescription
Public propertyColumn
Gets the column this control is hosting the filter for.
Public propertyFilter
The user provided filter (IFilter) or content (usually a string) used to filter this column. If the filter object implements IFilter, it will be used directly as the filter, else the filter object will be passed to the content filter.
Public propertyIsFiltered
Returns a flag indicating whether this column has some filter condition to evaluate or not. If there is no filter condition we don't need to invoke this filter.
Public propertySelectableValues
Returns all distinct selectable values of this column as string. This can be used to e.g. feed the ItemsSource of an Excel-like auto-filter, that only shows the values that are currently selectable, depending on the other filters.
Public propertySourceValues
Returns all distinct source values of this column as string. This can be used to e.g. feed the ItemsSource of an Excel-like auto-filter that always shows all source values that can be selected.
Public propertyValues
Returns all distinct visible (filtered) values of this column as string. This can be used to e.g. feed the ItemsSource of an AutoCompleteBox to give a hint to the user what to enter.
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Fields
  NameDescription
Public fieldStatic memberFilterProperty
Identifies the Filter dependency property
Top
See Also