DataGridViewColumn Class
Represents a column in a DataGridView control.
Namespace: elsystem.windows.forms
Properties
Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).
Name | Type | Description | |
AutoSizeMode | enum | Gets or sets the mode by which the column automatically adjusts its width. See DataGridViewAutoSizeColumnMode for available values. | |
DefaultCellStyle | object | Gets the column's default cell style properties. | |
DisplayIndex | int | Gets or sets the index of the column in the order it is displayed. | |
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. | |
Frozen | bool | True when a column (and those to its left) remain fixed when a user scrolls the DataGridView control horizontally. | |
HeaderText | string | Gets or sets the text to be displayed in the column header, if visible. | |
MinimumWidth | int | Gets or sets the minimum width of the column. | |
|
string | Gets or sets the name of the column. | |
ReadOnly | bool | True when the column's cells are read-only. | |
Resizeable | enum | Gets or sets a TriState value indicating whether the column is resizable. | |
Selected | bool | True if the column is in a selected state. | |
SortGlyphDirection | enum | Get or sets the sort order for cells in the column. See SortOrder for available values. | |
SortMode | enum | Gets or sets the sort mode for the column. See DataGridViewColumnSortMode for available values. | |
Tag | object | Gets or sets a value or object that can be used to store data associated with the control. | |
ToolTipText | string | Gets or sets the text used for ToolTips associated with this cell. | |
Visible | bool | True if the column is displayed (visible). | |
Width | int | Gets or sets the width of the column in pixels. |
Methods
Name | Description | |
Create | Initializes a new instance of the class. | |
Create(text) | Initializes a new instance of the class using Text as the name of the column. |