Spread ASP.NET 6.0 Product Documentation
AddColumn(Int32) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultRowFilter Class > AddColumn Method : AddColumn(Int32) Method


viewColumnIndex
Column index

Glossary Item Box

Adds a filter column definition to the row filter.

Syntax

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

Parameters

viewColumnIndex
Column index

Example

This example sets a row filter.
C#Copy Code
FarPoint.Web.Spread.NamedStyle instyle = new FarPoint.Web.Spread.NamedStyle();
FarPoint.Web.Spread.NamedStyle outstyle = new FarPoint.Web.Spread.NamedStyle();
instyle.BackColor = Color.Yellow;
outstyle.BackColor = Color.Aquamarine;
FarPoint.Web.Spread.StyleRowFilter sf = new FarPoint.Web.Spread.StyleRowFilter(FpSpread1.Sheets[0], instyle, outstyle);
sf.AddColumn(1);
FpSpread1.Sheets[0].RowFilter = sf;
Visual BasicCopy Code
Dim instyle As New FarPoint.Web.Spread.NamedStyle()
Dim outstyle As New FarPoint.Web.Spread.NamedStyle()
instyle.BackColor = Color.Yellow
outstyle.BackColor = Color.Aquamarine
Dim sf As New FarPoint.Web.Spread.StyleRowFilter(FpSpread1.Sheets(0), instyle, outstyle)
sf.AddColumn(1)
FpSpread1.Sheets(0).RowFilter = sf

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.