The properties of System.Windows.Forms.DataGridViewColumn are listed below. For a list of all members, see the DataGridViewColumn Members list.
See Also: Inherited members from System.Windows.Forms.DataGridViewBand
AutoSizeMode | DataGridViewAutoSizeColumnMode.
Gets or sets the mode by which the column automatically adjusts its width. | |
CellTemplate | DataGridViewCell.
Gets or sets the template used to create new cells. | |
[read-only] | CellType | Type.
Gets the run-time type of the cell template. |
override | ContextMenuStrip | ContextMenuStrip.
Gets or sets the shortcut menu for the column. |
DataPropertyName | string.
Gets or sets the name of the data source property or database column to which the System.Windows.Forms.DataGridViewColumn is bound. | |
override | DefaultCellStyle | DataGridViewCellStyle.
Gets or sets the column's default cell style. |
DisplayIndex | int.
Gets or sets the display order of the column relative to the currently displayed columns. | |
DividerWidth | int.
Gets or sets the width, in pixels, of the column divider. | |
FillWeight | float.
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 | Frozen | bool.
Gets or sets a value indicating whether a column will move when a user scrolls the System.Windows.Forms.DataGridView control horizontally. |
HeaderCell | DataGridViewColumnHeaderCell.
Gets or sets the System.Windows.Forms.DataGridViewColumnHeaderCell that represents the column header. | |
HeaderText | string.
Gets or sets the caption text on the column's header cell. | |
[read-only] | InheritedAutoSizeMode | DataGridViewAutoSizeColumnMode.
Gets the sizing mode in effect for the column. |
[read-only] override | InheritedStyle | DataGridViewCellStyle.
Gets the cell style currently applied to the column. |
[read-only] | IsDataBound | bool.
Gets a value indicating whether the column is bound to a data source. |
MinimumWidth | int.
Gets or sets the minimum width, in pixels, of the column. | |
Name | string.
Gets or sets the name of the column. | |
override | ReadOnly | bool.
Gets or sets a value indicating whether the user can edit the column's cells. |
override | Resizable | DataGridViewTriState.
Gets or sets a value indicating whether the column is resizable. |
Site | System.ComponentModel.ISite.
Gets or sets the site of the column. | |
SortMode | DataGridViewColumnSortMode.
Gets or sets the sort mode for the column. | |
ToolTipText | string.
Gets or sets the text used for ToolTips. | |
ValueType | Type.
Gets or sets the data type of the values in the column's cells. | |
override | Visible | bool.
Gets or sets a value indicating whether the column is visible. |
Width | int.
Gets or sets the current width of the column. |