Spread Windows Forms 12.0 Product Documentation
GetColumnFilterIndexFromColumnIndex Method (DefaultRowFilter)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultRowFilter Class : GetColumnFilterIndexFromColumnIndex Method
Column index
Gets the column filter index from the specified column.
Syntax
'Declaration
 
Public Function GetColumnFilterIndexFromColumnIndex( _
   ByVal columnIndex As Integer _
) As Integer
'Usage
 
Dim instance As DefaultRowFilter
Dim columnIndex As Integer
Dim value As Integer
 
value = instance.GetColumnFilterIndexFromColumnIndex(columnIndex)
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.
fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;

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

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

Reference

DefaultRowFilter Class
DefaultRowFilter Members