System.Windows.Forms.DataGridViewColumn.Visible Property

Gets or sets a value indicating whether the column is visible.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(true)]
public override bool Visible { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to hide a column from view while keeping the column in the System.Windows.Forms.DataGridView. To completely remove a column, use the erload:System.Windows.Forms.DataGridViewColumnCollection.Remove method.

To hide a column that is automatically generated when binding to a data source, set this property in a DataGridView.DataBindingComplete event handler.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0