Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
DataGridViewColumn Properties

The DataGridViewColumn type exposes the following members.

  NameDescription
Public propertyAutoSizeModeGets or sets the mode by which the column automatically adjusts its width.
Public propertyCellTemplateGets or sets the template used to create new cells.
Public propertyCellTypeGets the run-time type of the cell template.
Public propertyContextMenuStripGets or sets the shortcut menu for the column. (Overrides DataGridViewBand..::.ContextMenuStrip.)
Public propertyDataGridViewGets the DataGridView control associated with this element. (Inherited from DataGridViewElement.)
Public propertyDataPropertyNameGets or sets the name of the data source property or database column to which the DataGridViewColumn is bound.
Public propertyDefaultCellStyleGets or sets the column's default cell style. (Overrides DataGridViewBand..::.DefaultCellStyle.)
Public propertyDefaultHeaderCellTypeGets or sets the run-time type of the default header cell. (Inherited from DataGridViewBand.)
Public propertyDisplayedGets a value indicating whether the band is currently displayed onscreen. (Inherited from DataGridViewBand.)
Public propertyDisplayIndexGets or sets the display order of the column relative to the currently displayed columns.
Public propertyDividerWidthGets or sets the width, in pixels, of the column divider.
Public propertyFillWeightGets 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 propertyFrozenGets or sets a value indicating whether a column will move when a user scrolls the DataGridView control horizontally. (Overrides DataGridViewBand..::.Frozen.)
Public propertyHasDefaultCellStyleGets a value indicating whether the DefaultCellStyle property has been set. (Inherited from DataGridViewBand.)
Public propertyHeaderCellGets or sets the DataGridViewColumnHeaderCell that represents the column header.
Protected propertyHeaderCellCoreGets or sets the header cell of the DataGridViewBand. (Inherited from DataGridViewBand.)
Public propertyHeaderTextGets or sets the caption text on the column's header cell.
Public propertyIndexGets the relative position of the band within the DataGridView control. (Inherited from DataGridViewBand.)
Public propertyInheritedAutoSizeModeGets the sizing mode in effect for the column.
Public propertyInheritedStyleGets the cell style currently applied to the column. (Overrides DataGridViewBand..::.InheritedStyle.)
Public propertyIsDataBoundGets a value indicating whether the column is bound to a data source.
Protected propertyIsRowGets a value indicating whether the band represents a row. (Inherited from DataGridViewBand.)
Public propertyMinimumWidthGets or sets the minimum width, in pixels, of the column.
Public propertyNameGets or sets the name of the column.
Public propertyReadOnlyGets or sets a value indicating whether the user can edit the column's cells. (Overrides DataGridViewBand..::.ReadOnly.)
Public propertyResizableGets or sets a value indicating whether the column is resizable. (Overrides DataGridViewBand..::.Resizable.)
Public propertySelectedGets or sets a value indicating whether the band is in a selected user interface (UI) state. (Inherited from DataGridViewBand.)
Public propertySiteInfrastructure. Gets or sets the site of the column.
Public propertySortModeGets or sets the sort mode for the column.
Public propertyStateGets the user interface (UI) state of the element. (Inherited from DataGridViewElement.)
Public propertyTagGets or sets the object that contains data to associate with the band. (Inherited from DataGridViewBand.)
Public propertyToolTipTextGets or sets the text used for ToolTips.
Public propertyValueTypeGets or sets the data type of the values in the column's cells.
Public propertyVisibleGets or sets a value indicating whether the column is visible. (Overrides DataGridViewBand..::.Visible.)
Public propertyWidthGets or sets the current width of the column.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker