DateTimePickerColumn

Represents a column of cells that contain DateTimePicker controls in a DataGridView.

The DateTimePickerColumn class is a specialized type of the DataGridViewColumn class used to logically host cells that display DateTimePicker controls. A DateTimePickerColumn has an associated DataGridViewDateTimePickerCell in every DataGridViewRow that intersects it. Each cell contains a DateTimePicker control.

You can populate the cells manually by setting their Value properties. Alternatively, you can bind the column to the data source indicated by the DataGridView.DataSource property. If the DataGridView is bound to a database table, set the column DataPropertyName property to the name of a column in the table. If the DataGridView is bound to a collection of objects, set the DataPropertyName property to the name of an object property.

For a full list of properties, methods and events see the API documentation.

Last updated