Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Null Text

v
+
-
Clear
Options
v
Apply Changes


This demo illustrates how to use an editor's NullText property to display prompt text (watermark) in its edit box. The NullTextDisplayMode property specifies whether the null text is displayed in the editor depending on its focus state (if the editor's value is null). Note that the null text does not display in the focused editor if a mask is applied.

DevExpress editors can display a Clear button that allows you to clear the editor value when it is not empty. The DisplayMode property controls the Clear button availability.

See Also: Binding Data Editors to Data