DataGridViewCheckBoxColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Represents a DataGridView column that contains a collection of DataGridViewCheckBoxCell cells.
- C#
- VB.NET
public class DataGridViewCheckBoxColumn : DataGridViewColumn
Public Class DataGridViewCheckBoxColumn
Inherits DataGridViewColumn
Constructors
DataGridViewCheckBoxColumn()
Initializes a new instance of the DataGridViewCheckBoxColumn class to the default state.
DataGridViewCheckBoxColumn(cellTemplate)
Initializes a new instance of the DataGridViewCheckBoxColumn class to the default state.
| Name | Type | Description |
|---|---|---|
| cellTemplate | DataGridViewCheckBoxCell | An existing DataGridViewCheckBoxCell to use as a template. |
Properties
CellTemplate
DataGridViewCell: Returns or sets the template used to model cell appearance.
Value: A DataGridViewCell that all other cells in the column are modeled after.
Throws:
- InvalidOperationException The type is null.
- InvalidCastException The set type is not compatible with type DataGridViewCheckBoxCell.
DefaultCellStyle
DataGridViewCellStyle: Returns or sets the column's default cell style.
Value: The DataGridViewCellStyle to be applied as the default style.
FalseValue
Object: Gets or sets the value that corresponds to false, which appears as an unchecked box. (Default: null)
Value: The value that the cells in this column will treat as a false value. The default is null.
This value is inherited by all the cells in the column that do not specify a value for this property.
Throws:
- InvalidOperationException The property CellTemplate is null.
IndeterminateValue
Object: Gets or sets the value that corresponds to indeterminate, which appears as an indeterminate box. (Default: null)
Value: The value that the cells in this column will treat as an indeterminate or null value. The default is null.
This value is inherited by all the cells in the column that do not specify a value for this property.
Throws:
- InvalidOperationException The property CellTemplate is null.
ThreeState
Boolean: Returns or sets a value indicating if the checkbox cells support three states. (Default: False)
Value: true if the three states mode is enabled. The default is false.
This value is inherited by all the cells in the column that do not specify a value for this property.
Throws:
- InvalidOperationException The property CellTemplate is null.
TrueValue
Object: Gets or sets the value that corresponds to true, which appears as a checked box. (Default: null)
Value: The value that the cells in this column will treat as a true value. The default is null.
This value is inherited by all the cells in the column that do not specify a value for this property.
Throws:
- InvalidOperationException The property CellTemplate is null.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |