Spread Windows Forms 9.0 Product Documentation
AutoFilter Property
Example 


Gets or sets whether the filter will automatically update for any changes.
Syntax
'Declaration
 
Public Property AutoFilter As Boolean
'Usage
 
Dim instance As SheetView
Dim value As Boolean
 
instance.AutoFilter = value
 
value = instance.AutoFilter
public bool AutoFilter {get; set;}
Remarks
Specifies whether the filter is updated based on changes such as data changes.
Example
This example sets the AutoFilter property.
fpSpread1.Sheets[0].Columns[0, 2].AllowAutoFilter = true;
fpSpread1.Sheets[0].Cells[0, 0].Value = 1;
fpSpread1.Sheets[0].Cells[0, 1].Value = 1;
fpSpread1.Sheets[0].Cells[1, 0].Value = 2;
fpSpread1.Sheets[0].Cells[1, 1].Value = 2;
fpSpread1.Sheets[0].Cells[2, 0].Value = 3;
fpSpread1.Sheets[0].Cells[2, 1].Value = 3;
fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.EnhancedContextMenu;
fpSpread1.Sheets[0].AutoFilter = false;
FpSpread1.Sheets(0).Columns(0, 2).AllowAutoFilter = True
FpSpread1.Sheets(0).Cells(0, 0).Value = 1
FpSpread1.Sheets(0).Cells(0, 1).Value = 1
FpSpread1.Sheets(0).Cells(1, 0).Value = 2
FpSpread1.Sheets(0).Cells(1, 1).Value = 2
FpSpread1.Sheets(0).Cells(2, 0).Value = 3
FpSpread1.Sheets(0).Cells(2, 1).Value = 3
FpSpread1.Sheets(0).AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.EnhancedContextMenu
FpSpread1.Sheets(0).AutoFilter = False
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.