Spread Windows Forms 6.0 Product Documentation
AddColumn(Int32,FilterListBehavior) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultRowFilter Class > AddColumn Method : AddColumn(Int32,FilterListBehavior) Method


viewColumnIndex
Column index
listBehavior
FilterListBehavior object containing the list behavior

Glossary Item Box

Adds a filter column definition to the row filter with the specified list behavior.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AddColumn( _
   ByVal viewColumnIndex As Integer, _
   ByVal listBehavior As FilterListBehavior _
) 
Visual Basic (Usage)Copy Code
Dim instance As DefaultRowFilter
Dim viewColumnIndex As Integer
Dim listBehavior As FilterListBehavior
 
instance.AddColumn(viewColumnIndex, listBehavior)
C# 
public void AddColumn( 
   int viewColumnIndex,
   FilterListBehavior listBehavior
)

Parameters

viewColumnIndex
Column index
listBehavior
FilterListBehavior object containing the list behavior

Example

This example adds a filtered column to the row filter.
C#Copy Code
fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;
fpSpread1.ActiveSheet.RowFilter.AddColumn(1, FarPoint.Win.Spread.FilterListBehavior.SortAlphabetically)
Visual BasicCopy Code
FpSpread1.ActiveSheet.Columns(0).AllowAutoFilter = True
FpSpread1.ActiveSheet.RowFilter.AddColumn(1, FarPoint.Win.Spread.FilterListBehavior.SortAlphabetically)

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.