DataGridViewColumnHeaderCell Methods
.NET Framework 4.5
The DataGridViewColumnHeaderCell type exposes the following members.
| Name | Description | |
|---|---|---|
|
AdjustCellBorderStyle | Modifies the input cell border style according to the specified criteria. (Inherited from DataGridViewCell.) |
|
BorderWidths | Returns a Rectangle that represents the widths of all the cell margins. (Inherited from DataGridViewCell.) |
|
ClickUnsharesRow | Indicates whether the cell's row will be unshared when the cell is clicked. (Inherited from DataGridViewCell.) |
|
Clone | Creates an exact copy of this cell. (Overrides DataGridViewHeaderCell.Clone().) |
|
ContentClickUnsharesRow | Indicates whether the cell's row will be unshared when the cell's content is clicked. (Inherited from DataGridViewCell.) |
|
ContentDoubleClickUnsharesRow | Indicates whether the cell's row will be unshared when the cell's content is double-clicked. (Inherited from DataGridViewCell.) |
|
CreateAccessibilityInstance | Creates a new accessible object for the DataGridViewColumnHeaderCell. (Overrides DataGridViewCell.CreateAccessibilityInstance().) |
|
DetachEditingControl | Removes the cell's editing control from the DataGridView. (Inherited from DataGridViewCell.) |
|
Dispose() | Releases all resources used by the DataGridViewCell. (Inherited from DataGridViewCell.) |
|
Dispose(Boolean) | Releases the unmanaged resources used by the DataGridViewHeaderCell and optionally releases the managed resources. (Inherited from DataGridViewHeaderCell.) |
|
DoubleClickUnsharesRow | Indicates whether the cell's row will be unshared when the cell is double-clicked. (Inherited from DataGridViewCell.) |
|
EnterUnsharesRow | Indicates whether the parent row will be unshared when the focus moves to the cell. (Inherited from DataGridViewCell.) |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Releases the unmanaged resources and performs other cleanup operations before the DataGridViewCell is reclaimed by garbage collection. (Inherited from DataGridViewCell.) |
|
GetClipboardContent | Retrieves the formatted value of the cell to copy to the Clipboard. (Overrides DataGridViewCell.GetClipboardContent(Int32, Boolean, Boolean, Boolean, Boolean, String).) |
|
GetContentBounds(Int32) | Returns the bounding rectangle that encloses the cell's content area using a default Graphics and cell style currently in effect for the cell. (Inherited from DataGridViewCell.) |
|
GetContentBounds(Graphics, DataGridViewCellStyle, Int32) | Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified Graphics object and cell style. (Overrides DataGridViewCell.GetContentBounds(Graphics, DataGridViewCellStyle, Int32).) |
|
GetEditedFormattedValue | Returns the current, formatted value of the cell, regardless of whether the cell is in edit mode and the value has not been committed. (Inherited from DataGridViewCell.) |
|
GetErrorIconBounds | Returns the bounding rectangle that encloses the cell's error icon, if one is displayed. (Inherited from DataGridViewCell.) |
|
GetErrorText | Returns a string that represents the error for the cell. (Inherited from DataGridViewCell.) |
|
GetFormattedValue | Gets the value of the cell as formatted for display. (Inherited from DataGridViewCell.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetInheritedContextMenuStrip | Retrieves the inherited shortcut menu for the specified row. (Overrides DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32).) |
|
GetInheritedState | Returns a value indicating the current state of the cell as inherited from the state of its row or column. (Inherited from DataGridViewHeaderCell.) |
|
GetInheritedStyle | Gets the style applied to the cell. (Overrides DataGridViewCell.GetInheritedStyle(DataGridViewCellStyle, Int32, Boolean).) |
|
GetPreferredSize | Calculates the preferred size, in pixels, of the cell. (Overrides DataGridViewCell.GetPreferredSize(Graphics, DataGridViewCellStyle, Int32, Size).) |
|
GetSize | Gets the size of the cell. (Inherited from DataGridViewHeaderCell.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
GetValue | Gets the value of the cell. (Overrides DataGridViewHeaderCell.GetValue(Int32).) |
|
InitializeEditingControl | Initializes the control used to edit the cell. (Inherited from DataGridViewCell.) |
|
KeyDownUnsharesRow | Indicates whether the parent row is unshared if the user presses a key while the focus is on the cell. (Inherited from DataGridViewCell.) |
|
KeyEntersEditMode | Determines if edit mode should be started based on the given key. (Inherited from DataGridViewCell.) |
|
KeyPressUnsharesRow | Indicates whether a row will be unshared if a key is pressed while a cell in the row has focus. (Inherited from DataGridViewCell.) |
|
KeyUpUnsharesRow | Indicates whether the parent row is unshared when the user releases a key while the focus is on the cell. (Inherited from DataGridViewCell.) |
|
LeaveUnsharesRow | Indicates whether a row will be unshared when the focus leaves a cell in the row. (Inherited from DataGridViewCell.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MouseClickUnsharesRow | Indicates whether a row will be unshared if the user clicks a mouse button while the pointer is on a cell in the row. (Inherited from DataGridViewCell.) |
|
MouseDoubleClickUnsharesRow | Indicates whether a row will be unshared if the user double-clicks a cell in the row. (Inherited from DataGridViewCell.) |
|
MouseDownUnsharesRow | Indicates whether a row will be unshared when the mouse button is held down while the pointer is on a cell in the row. (Inherited from DataGridViewHeaderCell.) |
|
MouseEnterUnsharesRow | Indicates whether a row will be unshared when the mouse pointer moves over a cell in the row. (Inherited from DataGridViewHeaderCell.) |
|
MouseLeaveUnsharesRow | Indicates whether a row will be unshared when the mouse pointer leaves the row. (Inherited from DataGridViewHeaderCell.) |
|
MouseMoveUnsharesRow | Indicates whether a row will be unshared when the mouse pointer moves over a cell in the row. (Inherited from DataGridViewCell.) |
|
MouseUpUnsharesRow | Indicates whether a row will be unshared when the mouse button is released while the pointer is on a cell in the row. (Inherited from DataGridViewHeaderCell.) |
|
OnClick | Called when the cell is clicked. (Inherited from DataGridViewCell.) |
|
OnContentClick | Called when the cell's contents are clicked. (Inherited from DataGridViewCell.) |
|
OnContentDoubleClick | Called when the cell's contents are double-clicked. (Inherited from DataGridViewCell.) |
|
OnDataGridViewChanged | Called when the DataGridView property of the cell changes. (Inherited from DataGridViewCell.) |
|
OnDoubleClick | Called when the cell is double-clicked. (Inherited from DataGridViewCell.) |
|
OnEnter | Called when the focus moves to a cell. (Inherited from DataGridViewCell.) |
|
OnKeyDown | Called when a character key is pressed while the focus is on a cell. (Inherited from DataGridViewCell.) |
|
OnKeyPress | Called when a key is pressed while the focus is on a cell. (Inherited from DataGridViewCell.) |
|
OnKeyUp | Called when a character key is released while the focus is on a cell. (Inherited from DataGridViewCell.) |
|
OnLeave | Called when the focus moves from a cell. (Inherited from DataGridViewCell.) |
|
OnMouseClick | Called when the user clicks a mouse button while the pointer is on a cell. (Inherited from DataGridViewCell.) |
|
OnMouseDoubleClick | Called when the user double-clicks a mouse button while the pointer is on a cell. (Inherited from DataGridViewCell.) |
|
OnMouseDown | Called when the mouse button is held down while the pointer is on a cell. (Inherited from DataGridViewHeaderCell.) |
|
OnMouseEnter | Called when the mouse pointer enters the cell. (Inherited from DataGridViewHeaderCell.) |
|
OnMouseLeave | Called when the mouse pointer leaves the cell. (Inherited from DataGridViewHeaderCell.) |
|
OnMouseMove | Called when the mouse pointer moves within a cell. (Inherited from DataGridViewCell.) |
|
OnMouseUp | Called when the mouse button is released while the pointer is over the cell. (Inherited from DataGridViewHeaderCell.) |
|
Paint | Paints the current DataGridViewColumnHeaderCell. (Overrides DataGridViewHeaderCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts).) |
|
PaintBorder | Paints the border of the current DataGridViewCell. (Inherited from DataGridViewCell.) |
|
PaintErrorIcon | Paints the error icon of the current DataGridViewCell. (Inherited from DataGridViewCell.) |
|
ParseFormattedValue | Converts a value formatted for display to an actual cell value. (Inherited from DataGridViewCell.) |
|
PositionEditingControl | Sets the location and size of the editing control hosted by a cell in the DataGridView control. (Inherited from DataGridViewCell.) |
|
PositionEditingPanel | Sets the location and size of the editing panel hosted by the cell, and returns the normal bounds of the editing control within the editing panel. (Inherited from DataGridViewCell.) |
|
RaiseCellClick | Raises the DataGridView.CellClick event. (Inherited from DataGridViewElement.) |
|
RaiseCellContentClick | Raises the DataGridView.CellContentClick event. (Inherited from DataGridViewElement.) |
|
RaiseCellContentDoubleClick | Raises the DataGridView.CellContentDoubleClick event. (Inherited from DataGridViewElement.) |
|
RaiseCellValueChanged | Raises the DataGridView.CellValueChanged event. (Inherited from DataGridViewElement.) |
|
RaiseDataError | Raises the DataGridView.DataError event. (Inherited from DataGridViewElement.) |
|
RaiseMouseWheel | Raises the Control.MouseWheel event. (Inherited from DataGridViewElement.) |
|
SetValue | Sets the value of the cell. (Overrides DataGridViewCell.SetValue(Int32, Object).) |
|
ToString | Returns the string representation of the cell. (Overrides DataGridViewHeaderCell.ToString().) |