FlexGrid for WinForms
AllowFiltering Property (C1FlexGridBase)



Gets or sets whether the user is allowed to filter the data.
Syntax
'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);
}
Remarks

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.

Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback