This documentation is archived and is not being maintained.

DataGridViewBand Members

Represents a linear collection of elements in a DataGridView control.

The DataGridViewBand type exposes the following members.

  NameDescription
Public method Clone Creates an exact copy of this band.
Public method Dispose Overloaded. Releases all resources used by the DataGridViewBand.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases the resources associated with the band. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnDataGridViewChanged Called when the band is associated with a different DataGridView. (Overrides DataGridViewElement.OnDataGridViewChanged().)
Protected method RaiseCellClick Raises the DataGridView.CellClick event. (Inherited from DataGridViewElement.)
Protected method RaiseCellContentClick Raises the DataGridView.CellContentClick event. (Inherited from DataGridViewElement.)
Protected method RaiseCellContentDoubleClick Raises the DataGridView.CellContentDoubleClick event. (Inherited from DataGridViewElement.)
Protected method RaiseCellValueChanged Raises the DataGridView.CellValueChanged event. (Inherited from DataGridViewElement.)
Protected method RaiseDataError Raises the DataGridView.DataError event. (Inherited from DataGridViewElement.)
Protected method RaiseMouseWheel Raises the Control.MouseWheel event. (Inherited from DataGridViewElement.)
Public method ToString Returns a string that represents the current band. (Overrides Object.ToString().)
Top

  NameDescription
Public property ContextMenuStrip Gets or sets the shortcut menu for the band.
Public property DataGridView Gets the DataGridView control associated with this element. (Inherited from DataGridViewElement.)
Public property DefaultCellStyle Gets or sets the default cell style of the band.
Public property DefaultHeaderCellType Gets or sets the run-time type of the default header cell.
Public property Displayed Gets a value indicating whether the band is currently displayed onscreen.
Public property Frozen Gets or sets a value indicating whether the band will move when a user scrolls through the DataGridView.
Public property HasDefaultCellStyle Gets a value indicating whether the DefaultCellStyle property has been set.
Protected property HeaderCellCore Gets or sets the header cell of the DataGridViewBand.
Public property Index Gets the relative position of the band within the DataGridView control.
Public property InheritedStyle Gets the cell style in effect for the current band, taking into account style inheritance.
Protected property IsRow Gets a value indicating whether the band represents a row.
Public property ReadOnly Gets or sets a value indicating whether the user can edit the band's cells.
Public property Resizable Gets or sets a value indicating whether the band can be resized in the user interface (UI).
Public property Selected Gets or sets a value indicating whether the band is in a selected user interface (UI) state.
Public property State Gets the user interface (UI) state of the element. (Inherited from DataGridViewElement.)
Public property Tag Gets or sets the object that contains data to associate with the band.
Public property Visible Gets or sets a value indicating whether the band is visible to the user.
Top
Show: