Skip to main content
Version: 4.1

DataGridViewColumnHeaderCell

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a column header in a DataGridView control.

public class DataGridViewColumnHeaderCell : DataGridViewHeaderCell

Constructors

Instance member DataGridViewColumnHeaderCell()

Initializes a new instance of DataGridViewColumnHeaderCell.

Properties

Instance member ErrorText

String: This property is not relevant for this class.

Instance member SortGlyphDirection

SortOrder: Returns or sets a value indicating which sort glyph is displayed.

Throws:

Methods

Protected member GetClipboardContent(rowIndex, firstCell, lastCell, inFirstRow, inLastRow, format)

Returns the formatted value of the cell to copy to the Clipboard.

ParameterTypeDescription
rowIndexInt32The zero-based index of the row containing the cell.
firstCellBooleantrue to indicate that the cell is in the first column of the region defined by the selected cells; otherwise, false.
lastCellBooleantrue to indicate that the cell is the last column of the region defined by the selected cells; otherwise, false.
inFirstRowBooleantrue to indicate that the cell is in the first row of the region defined by the selected cells; otherwise, false.
inLastRowBooleantrue to indicate that the cell is in the last row of the region defined by the selected cells; otherwise, false.
formatStringThe current format string of the cell.

Returns: Object. An Object that represents the value of the cell to copy to the Clipboard.

Throws:

Protected member GetErrorText()

This method is not relevant for this class.

Returns: String.

Instance member GetInheritedStyle(includeVisualProperties)

Returns the style applied to the column header cell.

ParameterTypeDescription
includeVisualPropertiesBooleantrue to include inherited visual properties; otherwise, false to include only formatting properties.

Returns: DataGridViewCellStyle. A DataGridViewCellStyle that includes the style of the column header cell and the style inherited from the DataGridView.

Throws:

Protected member GetValue()

Returns the value of the cell.

Returns: Object. The value contained in the DataGridViewColumnHeaderCell.

Instance member Render(data, styles, errors, tooltips)

Renders the cell's value and style.

ParameterTypeDescription
dataObjectThe data collection to render the cell's value into.
stylesObjectThe styles collection to render the cell's styles into.
errorsObjectThe errors collection to render the cell's error text into.
tooltipsObjectThe tooltips collection to render the cell's tooltip text into.

Protected member SetValue(value)

Sets the value of the cell.

ParameterTypeDescription
valueObjectThe cell value to set.

Returns: Boolean. true if the value has been set; otherwise, false.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
ICommandSourceDefines an object that can invoke a Command.