Skip to main content
Version: 4.1

DataGridViewDateTimePickerCell

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Displays an editable DateTimePicker control in a DataGridViewCell cell when in edit mode.

public class DataGridViewDateTimePickerCell : DataGridViewCell

Constructors​

Instance member DataGridViewDateTimePickerCell()​

Initializes a new instance of DataGridViewDateTimePickerCell.

Properties​

Instance member 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".

Instance member 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.

Instance member EditType​

Type: Returns the type of the cell's hosted editing control.

Value: A Type representing the DataGridViewDateTimePickerEditingControl type.

Instance member 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.

Instance member 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:

Instance member 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:

Instance member 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.

Instance member Tools​

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this cell.

Instance member 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​

Instance member InitializeEditingControl(editor, style)​

Initializes the control used to edit the cell.

ParameterTypeDescription
editorControlThe Control that is used to edit the cell.
styleDataGridViewCellStyleThe DataGridViewCellStyle that is in effect for the cell entering edit mode.

Throws:

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
ICommandSourceDefines an object that can invoke a Command.