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

elsystem.Object

elsystem.windows.forms.Control

elsystem.windows.forms.DataGridViewColumn