Spread Windows Forms 12.0 Product Documentation
SetColumnVisible Method

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetColumnVisible Method
Column index
Whether to display the column
Sets whether a column on this sheet is displayed.
Public Sub SetColumnVisible( _
   ByVal column As Integer, _
   ByVal visible As Boolean _
Dim instance As SheetView
Dim column As Integer
Dim visible As Boolean
instance.SetColumnVisible(column, visible)
public void SetColumnVisible( 
   int column,
   bool visible


Column index
Whether to display the column
DialogResult dlg; 
bool b;
dlg = MessageBox.Show("Do you want to hide the first column?", "Get/SetColumnVisible", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
    fpSpread1.ActiveSheet.SetColumnVisible(0, false);
    b = fpSpread1.ActiveSheet.GetColumnVisible(0);
    label1.Text = "Get/SetColumnVisible for column 0 = " + b.ToString();
Dim dlg As DialogResult
Dim b As Boolean
dlg = MessageBox.Show("Do you want to hide the first column?", "Get/SetColumnVisible", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
    FpSpread1.ActiveSheet.SetColumnVisible(0, False)
    b = FpSpread1.ActiveSheet.GetColumnVisible(0)
    Label1.Text = "Get/SetColumnVisible for column 0 = " & b.ToString()
End If
See Also


SheetView Class
SheetView Members

User-Task Documentation

Showing or Hiding a Row or Column