Spread Windows Forms 6.0 Product Documentation
AllowAutoFilter Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Column Class : AllowAutoFilter Property


Glossary Item Box

Gets or sets whether this column allows automatic filtering.

Syntax

Visual Basic (Declaration) 
Public Property AllowAutoFilter As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Column
Dim value As Boolean
 
instance.AllowAutoFilter = value
 
value = instance.AllowAutoFilter
C# 
public bool AllowAutoFilter {get; set;}

Property Value

Boolean: true to allow automatic filtering; false otherwise

Remarks

If this value is true, this allows a column to have a default filter assigned to it, which allows the user to filter the rows based on all the possible values in this column. A filter indicator is shown in the header cell of this column and the filter list includes all the unique values in cells in this column.

Example

This example allows a filter to be automatically set on the second column.
C#Copy Code
fpSpread1.ActiveSheet.Columns[1].AllowAutoFilter = true;
Visual BasicCopy Code
FpSpread1.ActiveSheet.Columns(1).AllowAutoFilter = True

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.