System.Windows.Forms.DataGridViewColumnDesignTimeVisibleAttribute Class

Specifies whether a column type is visible in the System.Windows.Forms.DataGridView designer. This class cannot be inherited.

See Also: DataGridViewColumnDesignTimeVisibleAttribute Members


[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class DataGridViewColumnDesignTimeVisibleAttribute : Attribute


By default, types derived from System.Windows.Forms.DataGridViewColumn appear in System.Windows.Forms.DataGridView control-specific parts of the Visual Studio designer, but inherit a System.ComponentModel.DesignTimeVisibleAttribute of System.ComponentModel.DesignTimeVisibleAttribute.No to prevent them from appearing in other parts of the designer. This is necessary because the System.Windows.Forms.DataGridViewColumn type implements the System.ComponentModel.IComponent interface, which normally makes an instance of the type appear in the designer.

Use this attribute to prevent a System.Windows.Forms.DataGridViewColumn type from appearing in the System.Windows.Forms.DataGridView control-specific designer.

For more information about using attributes, see Extending Metadata Using Attributes.


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