[]
        
(Showing Draft Content)

Placeholder

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 property of the C1DropDownEditorBase class.

Placeholder in DateEdit.

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:

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