C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : AllowFiltering Property |
'Declaration
<C1DescriptionAttribute("Gets or sets whether the user is allowed to filter the data.")> <DefaultValueAttribute()> <C1CategoryAttribute("Behavior")> Public Property AllowFiltering As Boolean
'Usage
Dim instance As C1FlexGridBase Dim value As Boolean instance.AllowFiltering = value value = instance.AllowFiltering
[C1Description("Gets or sets whether the user is allowed to filter the data.")] [DefaultValue()] [C1Category("Behavior")] public bool AllowFiltering {get; set;}
[C1Description("Gets or sets whether the user is allowed to filter the data.")] [DefaultValue()] [C1Category("Behavior")] public: property bool AllowFiltering { bool get(); void set ( bool value); }
When this property is set to true, the grid displays filter icons on the column headers. Users may click the icons to define filters to be applied to the data.
When a filter is applied, the grid hides rows that don't match the filter by setting their RowCol.Visible property to false. The filter is not applied to the data source.
You may specify the type of filter to use for each individual column by setting the columns Column.AllowFiltering property.
You may also create custom filters by creating classes the implement the IC1ColumnFilter interface and assigning instances of that class to the column's Column.Filter property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2