DataGridViewDateTimePickerCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Displays an editable DateTimePicker control in a DataGridViewCell cell when in edit mode.
- C#
- VB.NET
public class DataGridViewDateTimePickerCell : DataGridViewCell
Public Class DataGridViewDateTimePickerCell
Inherits DataGridViewCell
Constructors
DataGridViewDateTimePickerCell()
Initializes a new instance of DataGridViewDateTimePickerCell.
Properties
CellRenderer
String: Returns the name of the cell renderer to use on the client side to render the cell. If it's null or empty it defaults to "Cell".
The name of the cell renderer can be a fully qualified class name (i.e. "wisej.web.datagrid.cellRenderer.Cell") or just the class name (i.e. "ImageCell") in which case the client library prepends "wisej.web.datagrid.cellRenderer".
CustomFormat
String: Returns or sets the custom date/time format string.
Value: A string that represents the custom date/time format. The default is null.
See Custom Date and Time Format Strings for the supported format definitions.
EditType
Type: Returns the type of the cell's hosted editing control.
Value: A Type representing the DataGridViewDateTimePickerEditingControl type.
Format
DateTimePickerFormat: Returns or sets the format of the date/time value displayed in the control. (Default: DateTime)
Value: One of the DateTimePickerFormat values. The default is Long.
MaxDate
DateTime: Returns or sets the maximum date and time that can be selected in the control.
Value: The maximum date and time that can be selected in the control. The default is 12/31/9998 23:59:59.
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).
MinDate
DateTime: Returns or sets the minimum date and time that can be selected in the control.
Value: The minimum date and time that can be selected in the control. The default is 1/1/1753 00:00:00.
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).
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)
Value: true if a spin button control is displayed; otherwise, false. The default is false.
Tools
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this cell.
ValueType
Type: Returns or sets the data type of the values in the cell.
Value: A Type representing the data type of the value in the cell.
Methods
InitializeEditingControl(editor, style)
Initializes the control used to edit the cell.
| Parameter | Type | Description |
|---|---|---|
| editor | Control | The Control that is used to edit the cell. |
| style | DataGridViewCellStyle | The DataGridViewCellStyle that is in effect for the cell entering edit mode. |
Throws:
- ArgumentNullException editor is null.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| ICommandSource | Defines an object that can invoke a Command. |