System.Windows.Forms.DataGridViewBand Class

Represents a linear collection of elements in a System.Windows.Forms.DataGridView control.

See Also: DataGridViewBand Members


public class DataGridViewBand : DataGridViewElement, ICloneable, IDisposable


The System.Windows.Forms.DataGridViewBand class represents System.Windows.Forms.DataGridViewCell elements joined together in a band that can be manipulated as a group. Each element is typically an instance of System.Windows.Forms.DataGridViewCell or one of its derived classes. Although a System.Windows.Forms.DataGridViewHeaderCell is associated with each band, header cells are not considered elements of the band.

System.Windows.Forms.DataGridViewBand is the base class of the System.Windows.Forms.DataGridViewRow and System.Windows.Forms.DataGridViewColumn classes. There are no public constructors for the System.Windows.Forms.DataGridViewBand type, so the only way to access a band is through columns and rows in a System.Windows.Forms.DataGridView.


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