DataGridViewCheckBoxColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.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.
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.
FalseValue
Object: Gets or sets the value that corresponds to false, which appears as an unchecked box. (Default: 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)
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)
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)
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 |
|---|---|
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |