# Placeholder

Read the topic to know more about DateEdit control for WinForms.

## Content



DateEdit lets you display a text in the control when nothing is selected or displayed in it. For this purpose, you can add a placeholder text to the DateEditor control using [Placeholder](/componentone/docs/win/online-calendar/) property of the [C1DropDownEditorBase](/componentone/docs/win/online-calendar/) class.

![Placeholder in DateEdit.](https://cdn.mescius.io/document-site-files/images/1b33a1f1-17e3-4593-a233-97e8b8ff7610/images/dateedit-placeholder-win.png)

You can set the Placeholder property via the **Properties** window at design time, but you can also set it programmatically.

The following code shows the usage of the **Placeholder** property to add a text in the DateEdit control:

```csharp
// Add a placeholder text
dateEdit.Placeholder = "Enter date and time";
```