Spread Windows Forms 6.0 Product Documentation
GetColumnFilterIndexFromColumnIndex Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultRowFilter Class : GetColumnFilterIndexFromColumnIndex Method


columnIndex
Column index

Glossary Item Box

Gets the column filter index from the specified column.

Syntax

Visual Basic (Declaration) 
Public Function GetColumnFilterIndexFromColumnIndex( _
   ByVal columnIndex As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As DefaultRowFilter
Dim columnIndex As Integer
Dim value As Integer
 
value = instance.GetColumnFilterIndexFromColumnIndex(columnIndex)
C# 
public int GetColumnFilterIndexFromColumnIndex( 
   int columnIndex
)

Parameters

columnIndex
Column index

Return Value

Integer column filter index

Example

This example gets the string selected in the filter drop-down list for the specified column.
C#Copy Code
fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;

int i = fpSpread1.ActiveSheet.RowFilter.GetColumnFilterIndexFromColumnIndex(0);

MessageBox.Show("The column filter index is " + i.ToString());
Visual BasicCopy Code
fpSpread1.ActiveSheet.Columns(0).AllowAutoFilter = True
Dim i As Integer = fpSpread1.ActiveSheet.RowFilter.GetColumnFilterIndexFromColumnIndex(0)
MessageBox.Show("The column filter index is " & i.ToString())

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.