Spread Windows Forms 11.0 Product Documentation
AddColumn(Int32,FilterListBehavior) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultRowFilter Class > AddColumn Method : AddColumn(Int32,FilterListBehavior) Method
Column index
FilterListBehavior object that contains the list behavior
Adds a filter column definition to the row filter with the specified list behavior.
Syntax
'Declaration
 
Public Overloads Sub AddColumn( _
   ByVal viewColumnIndex As Integer, _
   ByVal listBehavior As FilterListBehavior _
) 
'Usage
 
Dim instance As DefaultRowFilter
Dim viewColumnIndex As Integer
Dim listBehavior As FilterListBehavior
 
instance.AddColumn(viewColumnIndex, listBehavior)
public void AddColumn( 
   int viewColumnIndex,
   FilterListBehavior listBehavior
)

Parameters

viewColumnIndex
Column index
listBehavior
FilterListBehavior object that contains the list behavior
Example
This example adds a filtered column to the row filter.
fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;
fpSpread1.ActiveSheet.RowFilter.AddColumn(1, FarPoint.Win.Spread.FilterListBehavior.SortAlphabetically)
FpSpread1.ActiveSheet.Columns(0).AllowAutoFilter = True
FpSpread1.ActiveSheet.RowFilter.AddColumn(1, FarPoint.Win.Spread.FilterListBehavior.SortAlphabetically)
See Also

Reference

DefaultRowFilter Class
DefaultRowFilter Members
Overload List