Skip to main content

BaseEditSettings.AllowNullInput Property

Gets or sets whether end-users can set the editor's value to a null reference. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

[SkipPropertyAssertion]
public bool AllowNullInput { get; set; }

#Property Value

Type Description
Boolean

true to allow null input; otherwise, false.

#Property Paths

You can access the BaseEditSettings.AllowNullInput property from the following objects:

Object Type Path to AllowNullInput
BarEditItem
.EditSettings.AllowNullInput
ColumnBase
.ActualEditSettings.AllowNullInput
ColumnBase
.EditSettings.AllowNullInput
GridColumn
.ActualEditSettings.AllowNullInput
GridColumn
.EditSettings.AllowNullInput
TreeListColumn
.ActualEditSettings.AllowNullInput
TreeListColumn
.EditSettings.AllowNullInput

#Remarks

If the AllowNullInput property is set to true, end-users can set the editor's value to a null reference by pressing the CTRL+DEL or CTRL+0 key combinations. If the BaseEditSettings.NullValue property is specified, its value is assigned to the editor's value. Otherwise, the editor's value is set to null (Nothing in Visual Basic).

NOTE

CTRL + 0 key combination does not work when using a French keyboard.

NOTE

By default, if an end-user clears the text displayed within the edit box, the BaseEdit.EditValue property is set to a null reference. The AllowNullInput property is not in effect in this instance.

See Also