Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / AutoFilter Class / SetActiveFilter Method
An integer value indicates the column index.
A Filter object to become the active filter of the specified column.
if set to true, the filter will be re-applied.


In This Topic
    SetActiveFilter Method
    In This Topic
    Activates the specified Filter for a column and re-apply filtering.
    Syntax
    'Declaration
     
    
    Public Function SetActiveFilter( _
       ByVal column As Integer, _
       ByVal filter As Filter, _
       Optional ByVal apply As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As AutoFilter
    Dim column As Integer
    Dim filter As Filter
    Dim apply As Boolean
    Dim value As Boolean
     
    value = instance.SetActiveFilter(column, filter, apply)
    public bool SetActiveFilter( 
       int column,
       Filter filter,
       bool apply
    )

    Parameters

    column
    An integer value indicates the column index.
    filter
    A Filter object to become the active filter of the specified column.
    apply
    if set to true, the filter will be re-applied.

    Return Value

    true if the filter is activated, false otherwise.
    See Also