DataGridViewDateTimePickerColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a DataGridView column that contains a collection of DataGridViewDateTimePickerCell cells.
- C#
- VB.NET
public class DataGridViewDateTimePickerColumn : DataGridViewColumn
Public Class DataGridViewDateTimePickerColumn
Inherits DataGridViewColumn
Constructors
DataGridViewDateTimePickerColumn()
Initializes a new instance of the DataGridViewDateTimePickerColumn class to the default state.
DataGridViewDateTimePickerColumn(cellTemplate)
Initializes a new instance of the DataGridViewDateTimePickerColumn class to the default state.
| Name | Type | Description |
|---|---|---|
| cellTemplate | DataGridViewDateTimePickerCell | An existing DataGridViewDateTimePickerCell 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 DataGridViewDateTimePickerCell.
CustomFormat
String: Returns or sets the custom date/time format string. (Default: "")
See Custom Date and Time Format Strings for the supported format definitions.
DefaultCellStyle
DataGridViewCellStyle: Returns or sets the column's default cell style.
Format
DateTimePickerFormat: Returns or sets the format of the date/time value displayed in the control. (Default: DateTime)
This value is inherited by all the cells in the column that do not specify a value for this property. Throws:
- InvalidOperationException The value of the CellTemplate property is null.
MaxDate
DateTime: Returns or sets the maximum date and time that can be selected in the control.
This value is inherited by all the cells in the column that do not specify a value for this property. Throws:
- ArgumentException The value assigned is not less than the MaximumDateTime value (12/31/9998).
- SystemException The value assigned is less than the MinimumDateTime value (01/01/1753).
- InvalidOperationException The value of the CellTemplate property is null.
MinDate
DateTime: Returns or sets the minimum date and time that can be selected in the control.
This value is inherited by all the cells in the column that do not specify a value for this property. Throws:
- ArgumentException The value assigned is not less than the MaximumDateTime value (12/31/9998).
- SystemException The value assigned is less than the MinimumDateTime value (01/01/1753).
- InvalidOperationException The value of the CellTemplate property is null.
ShowUpDown
Boolean: Returns or sets a value indicating if a spin button control (up-down control) is displayed and can be used to adjust the date/time value. (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 value of the CellTemplate property is null.
Tools
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
Implements
| Name | Description |
|---|---|
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |