ColumnFilter
Namespace: Wisej.Web.Ext.ColumnFilter
Assembly: Wisej.Web.Ext.ColumnFilter
Adds a custom filter button to DataGridViewColumn to display a custom filter panel.
- C#
- VB.NET
public class ColumnFilter : Component, IWisejExtenderProvider, IExtenderProvider, ISupportInitialize
Public Class ColumnFilter
Inherits Component
Implements IWisejExtenderProvider, IExtenderProvider, ISupportInitialize
Constructors
ColumnFilter()
Initializes a new instance of ColumnFilter
ColumnFilter(container)
Initializes a new instance of the ColumnFilter class with a specified container.
| Name | Type | Description |
|---|---|---|
| container | IContainer | An IContainercontainer. |
Properties
FilteredImage
Image: Returns or sets the image that is displayed in the filter button when there is an active filter. Can be null.
FilteredImageSource
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.
FilterPanelType
Type: Returns or sets the ColumnFilterPanel to associate with this ColumnFilter extender. (Default: null)
Image
Image: Returns or sets the image that is displayed in the filter button.
ImageSource
String: Returns or sets the theme name or URL for the image to display in the filter button.
Methods
GetShowFilter(column)
Returns whether the specified DataGridViewColumn shows the filter button in its header.
| Parameter | Type | Description |
|---|---|---|
| column | DataGridViewColumn | The DataGridViewColumn to query. |
Returns: Boolean. True if the DataGridViewColumn shows the filter button.
OnRowsFiltered(filteredRowCount)
Fires the RowsFiltered event.
| Parameter | Type | Description |
|---|---|---|
| filteredRowCount | Int32 |
SetShowFilter(column, show)
Shows or hides the filter button on a DataGridViewColumn header panel.
| Parameter | Type | Description |
|---|---|---|
| column | DataGridViewColumn | The DataGridViewColumn for which to show or hide the filter button. |
| show | Boolean | True to show the filter button or false to remove it. |
Events
RowsFiltered
EventHandler<RowsFilteredEventArg> Event is fired when all filters are applied.