Spread Windows Forms 12.0 Product Documentation
SetColumnAllowFilter(Int32,Int32,Boolean) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SetColumnAllowFilter Method : SetColumnAllowFilter(Int32,Int32,Boolean) Method
Column index of first column to set
Number of columns to set
Whether to allow filtering for the specified columns
Sets whether the specified columns on this sheet allow filtering.
Syntax
'Declaration
 
Public Overloads Sub SetColumnAllowFilter( _
   ByVal column As Integer, _
   ByVal count As Integer, _
   ByVal allowFilter As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim count As Integer
Dim allowFilter As Boolean
 
instance.SetColumnAllowFilter(column, count, allowFilter)
public void SetColumnAllowFilter( 
   int column,
   int count,
   bool allowFilter
)

Parameters

column
Column index of first column to set
count
Number of columns to set
allowFilter
Whether to allow filtering for the specified columns
Exceptions
ExceptionDescription
Specified column index is out of range; must be between -1 and the total number of columns
Remarks
The default is for columns not to allow filtering.
Example
This example uses the SetColumnAllowFilter method.
fpSpread1.Sheets[0].SetColumnAllowFilter(0, 2, true);
fpSpread1.Sheets(0).SetColumnAllowFilter(0, 2, True)
See Also

Reference

SheetView Class
SheetView Members
Overload List