Spread ASP.NET 6.0 Product Documentation
SetColumnVisible Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetColumnVisible Method


column
Column index
visible
Whether to display the column

Glossary Item Box

Sets whether a column is displayed.

Syntax

Visual Basic (Declaration) 
Public Sub SetColumnVisible( _
   ByVal column As Integer, _
   ByVal visible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim visible As Boolean
 
instance.SetColumnVisible(column, visible)
C# 
public void SetColumnVisible( 
   int column,
   bool visible
)

Parameters

column
Column index
visible
Whether to display the column

Remarks

Set to True to display the column. Set to False to hide the column.

To get whether a column is displayed, use the GetColumnVisible method.

To specify whether a row is displayed, use the SetRowVisible method.

Example

This example illustrates the use of this member by setting whether the specified column is visible.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.SetColumnVisible(1, false);
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.SetColumnVisible(1, False)

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.