Skip to main content
Version: 4.2

DataGridViewBand

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Represents a linear collection of elements in a DataGridView control.

public abstract class DataGridViewBand : DataGridViewElement, ICloneable, IUserData

Derives from or implements DataGridViewElement, ICloneable, IDisposable, IUserData.

This type is abstract. Use a concrete implementation or derive a class to supply the required behavior.

  • IsRow Returns true when the implementation class is DataGridViewRow.
  • Index Returns the relative position of the band within the DataGridView control.
  • ContextMenu Gets or sets the shortcut menu for the row or the column object.

Properties​

Instance member ContextMenu​

ContextMenu: Gets or sets the shortcut menu for the row or the column object. (Default: null)

Value: The ContextMenu associated with the current DataGridViewBand. The default is null.

Instance member DefaultCellStyle​

DataGridViewCellStyle: Gets or sets the default cell style of the band.

Value: The DataGridViewCellStyle associated with the DataGridViewBand.

Instance member DefaultHeaderCellType​

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

Value: A Type that describes the run-time class of the object used as the default header cell.

Throws:

Instance member DefaultMinimumSize​

Int32: Returns the default minimum size for the band (row or column.)

Instance member DefaultSize​

Int32: Returns the default size for the band (row or column.)

Instance member Displayed​

Boolean: Returns a value indicating whether the band is currently displayed on screen.

Value: true if the band is currently displayed in the visible range; otherwise, false.

Instance member Frozen​

Boolean: Gets or sets whether the band will move when a user scrolls through the DataGridView. (Default: False)

Value: true if the band cannot be scrolled from view; otherwise, false. The default is false.

Instance member HasDefaultCellStyle​

Boolean: Returns a value indicating whether the DefaultCellStyle property has been set.

Value: true if the DefaultCellStyle property has been set; otherwise, false.

Instance member HasUserData​

Boolean: Checks if the UserData dynamic object was created and has any value.

Protected member HeaderCellCore​

DataGridViewHeaderCell: Gets or sets the header cell of the DataGridViewBand.

Value: A DataGridViewHeaderCell representing the header cell of the DataGridViewBand.

Throws:

Instance member Index​

Int32: Returns the relative position of the band within the DataGridView control.

Value: The zero-based position of the band in the DataGridViewRowCollection or DataGridViewColumnCollection that it is contained within. The default is -1, indicating that there is no associated DataGridView control.

Instance member InheritedStyle​

DataGridViewCellStyle: Returns the cell style in effect for the current band, taking into account style inheritance.

Value: A DataGridViewCellStyle associated with the DataGridViewBand. The default is null.

Instance member IsRow​

Boolean: Returns true when the implementation class is DataGridViewRow.

Instance member ReadOnly​

Boolean: Gets or sets whether the user can edit the band's cells. (Default: False)

Value: true if the user cannot edit the band's cells; otherwise, false. The default is false.

Instance member Resizable​

DataGridViewTriState: Gets or sets whether the band can be resized in the user interface (UI).

Value: One of the DataGridViewTriState values. The default is True.

Instance member Selected​

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

Value: true if the band is selected; otherwise, false.

Instance member Tag​

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

Value: An Object that contains information associated with the band. The default is null.

Instance member UserData​

Object: Returns a dynamic object that can be used to store custom data in relation to this band.

Instance member Visible​

Boolean: Gets or sets whether the band is visible to the user. (Default: True)

Value: true if the band is visible; otherwise, false. The default is true.

Throws:

Methods​

Instance member Clone()​

Creates an exact copy of this band.

Returns: Object. An Object that represents the cloned DataGridViewBand.

Protected member Dispose(disposing)​

Releases the resources used by the DataGridViewBand.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Inherited By​

NameDescription
DataGridViewButtonColumnRepresents a DataGridView column that contains a collection of DataGridViewButtonCell cells.
DataGridViewCheckBoxColumnRepresents a DataGridView column that contains a collection of DataGridViewCheckBoxCell cells.
DataGridViewColumnRepresents a column in a DataGridView control.
DataGridViewComboBoxColumnRepresents a DataGridView column that contains a collection of DataGridViewComboBoxCell cells.
DataGridViewDateTimePickerColumnRepresents a DataGridView column that contains a collection of DataGridViewDateTimePickerCell cells.
DataGridViewImageColumnRepresents a DataGridView column that contains a collection of DataGridViewImageCell cells.
DataGridViewLinkColumnRepresents a DataGridView column that contains a collection of DataGridViewLinkCell cells.
DataGridViewMaskedTextBoxColumnRepresents a DataGridView column that contains a collection of DataGridViewTextBoxCell cells.
DataGridViewNumericUpDownColumnRepresents a DataGridView column that contains a collection of DataGridViewNumericUpDownCell cells.
DataGridViewTextBoxColumnRepresents a DataGridView column that contains a collection of DataGridViewTextBoxCell cells.
DataGridViewRowRepresents a row in a DataGridView control.
DataGridViewSummaryRowRepresents a summary row in a DataGridView control.
DataGridViewActionsColumnDefines actions presentation for DataGridViewActionsCell cells while retaining their bound values.
DataGridViewAvatarColumnDefines avatar presentation for DataGridViewAvatarCell cells while retaining their bound values.
DataGridViewChipColumnDefines chip presentation for DataGridViewChipCell cells while retaining their bound values.
DataGridViewMeterColumnDefines meter presentation for DataGridViewMeterCell cells while retaining their bound values.
DataGridViewSparklineColumnDefines sparkline presentation for DataGridViewSparklineCell cells while retaining their bound values.
DataGridViewSubtitleColumnDefines subtitle presentation for DataGridViewSubtitleCell cells while retaining their bound values.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.