Skip to main content
Version: 4.1

DataGridViewCheckBoxCell

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Displays a CheckBox icon (not the actual control) in a DataGridViewCell cell.

public class DataGridViewCheckBoxCell : DataGridViewCell

Constructors

Instance member DataGridViewCheckBoxCell()

Initializes a new instance of DataGridViewCheckBoxCell.

Properties

Instance member FalseValue

Object: Gets or sets the value that corresponds to false, which appears as an unchecked box. (Default: null)

Instance member FormattedValueType

Type: Returns the type of the formatted value associated with the cell.

Instance member IndeterminateValue

Object: Gets or sets the value that corresponds to indeterminate, which appears as an indeterminate box. (Default: null)

Instance member ThreeState

Boolean: Returns or sets a value indicating if the checkbox cell supports three states. (Default: False)

Instance member TrueValue

Object: Gets or sets the value that corresponds to true, which appears as checked box. (Default: null)

Instance member ValueType

Type: Returns or sets the data type of the values in the cell.

Methods

Instance member GetCellDataValue(cellStyle, includeVisualProperties)

Returns the data value of the cell. This is the value that is returned to the client in the data response stream.

ParameterTypeDescription
cellStyle by referenceDataGridViewCellStyleThe cell style in effect for the current cell, used to format the cell's value for the client rendering.
includeVisualPropertiesBooleantrue to include inherited visual properties; otherwise, false to include only formatting properties.

Returns: Object.

Protected member GetFormattedValue(value, cellStyle, valueTypeConverter, formattedTypeConverter)

Returns the value of the cell formatted for the client.

ParameterTypeDescription
valueObjectThe value to be formatted.
cellStyle by referenceDataGridViewCellStyleThe DataGridViewCellStyle in for the cell.
valueTypeConverterTypeConverterA TypeConverter providing custom conversion from the formatted type to the value type, or null if no custom conversion is required.
formattedTypeConverterTypeConverterA TypeConverter providing custom conversion from the value type to the formatted type, or null if no custom conversion is required.

Returns: Object. The value of the cell or null if the cell does not belong to a DataGridView control.

Throws:

Instance member OnClick(e)

Raised when the user clicks on a cell. The DataGridCheckBoxCell class processes this event to determine the location of click and toggles the checkbox accordingly.

ParameterTypeDescription
eDataGridViewCellEventArgsA DataGridViewCellEventArgs that contains the event data.

Instance member OnKeyDown(e)

Raised when the user presses a key on the keyboard while the focus is on the table and not in edit mode.

ParameterTypeDescription
eKeyEventArgs

Instance member ParseFormattedValue(value, cellStyle, formattedTypeConverter, valueTypeConverter)

Converts a value to the actual cell value.

ParameterTypeDescription
valueObjectThe display value of the cell.
cellStyleDataGridViewCellStyleThe DataGridViewCellStyle in effect for the cell.
formattedTypeConverterTypeConverterA TypeConverter for the display value type, or null to use the default converter.
valueTypeConverterTypeConverterA TypeConverter for the cell value type, or null to use the default converter.

Returns: Object. The cell value.

Throws:

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.