Skip to main content

ColumnFilter

Namespace: Wisej.Web.Ext.ColumnFilter

Assembly: Wisej.Web.Ext.ColumnFilter

Adds a custom filter button to DataGridViewColumn to display a custom filter panel.

public class ColumnFilter : Component, IWisejExtenderProvider, IExtenderProvider, ISupportInitialize

Constructors

Instance memberColumnFilter()

Initializes a new instance of ColumnFilter

Instance memberColumnFilter(container)

Initializes a new instance of the ColumnFilter class with a specified container.

NameTypeDescription
containerIContainerAn IContainercontainer.

Properties

Instance memberFilteredImage

Image: Returns or sets the image that is displayed in the filter button when there is an active filter. Can be null.

Instance memberFilteredImageSource

String: Returns or sets the theme name or URL for the image to display in the filter button when there is an active filter. Can be null.

Instance memberFilterPanelType

Type: Returns or sets the ColumnFilterPanel to associate with this ColumnFilter extender. (Default: null)

Instance memberImage

Image: Returns or sets the image that is displayed in the filter button.

Instance memberImageSource

String: Returns or sets the theme name or URL for the image to display in the filter button.

Methods

Instance memberGetShowFilter(column)

Returns whether the specified DataGridViewColumn shows the filter button in its header.

ParameterTypeDescription
columnDataGridViewColumnThe DataGridViewColumn to query.

Returns: Boolean. True if the DataGridViewColumn shows the filter button.

Instance memberOnRowsFiltered(filteredRowCount)

Fires the RowsFiltered event.

ParameterTypeDescription
filteredRowCountInt32

Instance memberSetShowFilter(column, show)

Shows or hides the filter button on a DataGridViewColumn header panel.

ParameterTypeDescription
columnDataGridViewColumnThe DataGridViewColumn for which to show or hide the filter button.
showBooleanTrue to show the filter button or false to remove it.

Events

Instance memberRowsFiltered

EventHandler<RowsFilteredEventArg> Event is fired when all filters are applied.