System.Windows.Forms.DataGridViewColumn Members

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

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

Public Constructors

Initializes a new instance of the System.Windows.Forms.DataGridViewColumn class to the default state.

Initializes a new instance of the System.Windows.Forms.DataGridViewColumn class using an existing System.Windows.Forms.DataGridViewCell as a template.

Public Properties

AutoSizeModeDataGridViewAutoSizeColumnMode.

Gets or sets the mode by which the column automatically adjusts its width.

CellTemplateDataGridViewCell.

Gets or sets the template used to create new cells.

[read-only]
CellTypeType.

Gets the run-time type of the cell template.

override
ContextMenuStripContextMenuStrip.

Gets or sets the shortcut menu for the column.

DataPropertyNamestring.

Gets or sets the name of the data source property or database column to which the System.Windows.Forms.DataGridViewColumn is bound.

override
DefaultCellStyleDataGridViewCellStyle.

Gets or sets the column's default cell style.

DisplayIndexint.

Gets or sets the display order of the column relative to the currently displayed columns.

DividerWidthint.

Gets or sets the width, in pixels, of the column divider.

FillWeightfloat.

Gets or sets a value that represents the width of the column when it is in fill mode relative to the widths of other fill-mode columns in the control.

override
Frozenbool.

Gets or sets a value indicating whether a column will move when a user scrolls the System.Windows.Forms.DataGridView control horizontally.

HeaderCellDataGridViewColumnHeaderCell.

Gets or sets the System.Windows.Forms.DataGridViewColumnHeaderCell that represents the column header.

HeaderTextstring.

Gets or sets the caption text on the column's header cell.

[read-only]
InheritedAutoSizeModeDataGridViewAutoSizeColumnMode.

Gets the sizing mode in effect for the column.

[read-only]
override
InheritedStyleDataGridViewCellStyle.

Gets the cell style currently applied to the column.

[read-only]
IsDataBoundbool.

Gets a value indicating whether the column is bound to a data source.

MinimumWidthint.

Gets or sets the minimum width, in pixels, of the column.

Namestring.

Gets or sets the name of the column.

override
ReadOnlybool.

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

override
ResizableDataGridViewTriState.

Gets or sets a value indicating whether the column is resizable.

SiteSystem.ComponentModel.ISite.

Gets or sets the site of the column.

SortModeDataGridViewColumnSortMode.

Gets or sets the sort mode for the column.

ToolTipTextstring.

Gets or sets the text used for ToolTips.

ValueTypeType.

Gets or sets the data type of the values in the column's cells.

override
Visiblebool.

Gets or sets a value indicating whether the column is visible.

Widthint.

Gets or sets the current width of the column.

Public Methods

override
Clone() : object
Documentation for this section has not yet been entered.
GetPreferredWidth(DataGridViewAutoSizeColumnMode, bool) : int

Calculates the ideal width of the column based on the specified criteria.

override
ToString() : string

Gets a string that describes the column.

Protected Methods

override
Dispose(bool)
Documentation for this section has not yet been entered.

Public Events