DataGridViewCheckBoxCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Displays a CheckBox icon (not the actual control) in a DataGridViewCell cell.
- C#
- VB.NET
public class DataGridViewCheckBoxCell : DataGridViewCell
Public Class DataGridViewCheckBoxCell
Inherits DataGridViewCell
Constructors
DataGridViewCheckBoxCell()
Initializes a new instance of DataGridViewCheckBoxCell.
Properties
FalseValue
Object: Gets or sets the value that corresponds to false, which appears as an unchecked box. (Default: null)
FormattedValueType
Type: Returns the type of the formatted value associated with the cell.
IndeterminateValue
Object: Gets or sets the value that corresponds to indeterminate, which appears as an indeterminate box. (Default: null)
ThreeState
Boolean: Returns or sets a value indicating if the checkbox cell supports three states. (Default: False)
TrueValue
Object: Gets or sets the value that corresponds to true, which appears as checked box. (Default: null)
ValueType
Type: Returns or sets the data type of the values in the cell.
Methods
ParseFormattedValue(value, cellStyle, formattedTypeConverter, valueTypeConverter)
Converts a value to the actual cell value.
| Parameter | Type | Description |
|---|---|---|
| value | Object | The display value of the cell. |
| cellStyle | DataGridViewCellStyle | The DataGridViewCellStyle in effect for the cell. |
| formattedTypeConverter | TypeConverter | A TypeConverter for the display value type, or null to use the default converter. |
| valueTypeConverter | TypeConverter | A TypeConverter for the cell value type, or null to use the default converter. |
Returns: Object. The cell value.
Throws:
- ArgumentNullException cellStyle is null.
- FormatException The FormattedValueType property value is null or the ValueType property value is null or value cannot be converted.
- ArgumentException value is null or the type of value does not match the type indicated by the FormattedValueType property.
Implements
| Name | Description |
|---|---|
| ICommandSource | Defines an object that can invoke a Command. |