System.Windows.Forms.DataGridViewBand Members

The members of System.Windows.Forms.DataGridViewBand are listed below.

See Also: Inherited members from System.Windows.Forms.DataGridViewElement

Public Properties

ContextMenuStripContextMenuStrip.

Gets or sets the shortcut menu for the band.

DefaultCellStyleDataGridViewCellStyle.

Gets or sets the default cell style of the band.

DefaultHeaderCellTypeType.

Gets or sets the run-time type of the default header cell.

[read-only]
Displayedbool.

Gets a value indicating whether the band is currently displayed onscreen.

Frozenbool.

Gets or sets a value indicating whether the band will move when a user scrolls through the System.Windows.Forms.DataGridView.

[read-only]
HasDefaultCellStylebool.

Gets a value indicating whether the DataGridViewBand.DefaultCellStyle property has been set.

[read-only]
Indexint.

Gets the relative position of the band within the System.Windows.Forms.DataGridView control.

[read-only]
InheritedStyleDataGridViewCellStyle.

Gets the cell style in effect for the current band, taking into account style inheritance.

ReadOnlybool.

Gets or sets a value indicating whether the user can edit the band's cells.

ResizableDataGridViewTriState.

Gets or sets a value indicating whether the band can be resized in the user interface (UI).

Selectedbool.

Gets or sets a value indicating whether the band is in a selected user interface (UI) state.

Tagobject.

Gets or sets the object that contains data to associate with the band.

Visiblebool.

Gets or sets a value indicating whether the band is visible to the user.

Protected Properties

HeaderCellCoreDataGridViewHeaderCell.

Gets or sets the header cell of the System.Windows.Forms.DataGridViewBand.

[read-only]
IsRowbool.

Gets a value indicating whether the band represents a row.

Public Methods

Clone() : object

Creates an exact copy of this band.

Dispose()

Releases all resources used by the System.Windows.Forms.DataGridViewBand.

Finalize()

Releases the resources associated with the band.

override
ToString() : string

Returns a string that represents the current band.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.DataGridViewBand and optionally releases the managed resources.

override
OnDataGridViewChanged()

Called when the band is associated with a different System.Windows.Forms.DataGridView.