RepositoryItemTextEdit.ShowNullValuePromptWhenFocused Property
Gets or sets whether to display the RepositoryItemTextEdit.NullValuePrompt when the current editor is focused.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
[DefaultValue(false)]
[Browsable(true)]
[DXCategory("Appearance")]
public bool ShowNullValuePromptWhenFocused { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | **false** | true, if the RepositoryItemTextEdit.NullValuePrompt is displayed when the editor is focused; otherwise, false. |
Remarks
Even if the ShowNullValuePromptWhenFocused property is enabled, the RepositoryItemTextEdit.NullValuePrompt is not displayed for text editors in the following cases:
- When the text editor is focused by clicking it with the mouse.
- When any key is pressed while the editor has focus.
- When the text editor’s value is cleared while the editor has focus (even if the RepositoryItemSearchControl.NullValuePromptShowForEmptyValue is set to true).
These restrictions do not apply to editors that forbid editing their values directly in the edit box.
See Also