Skip to main content
A newer version of this page is available. .

BaseEditSettings.AllowNullInput Property

Gets or sets whether end-users can set the editor’s value to a null reference by pressing the CTRL+DEL or CTRL+0 key combinations. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public bool AllowNullInput { get; set; }

Property Value

Type Description
Boolean

true to allow null input by pressing the CTRL+DEL or CTRL+0 key combinations; otherwise, false.

Property Paths

You can access this nested property as listed below:

Show 11 property paths
Object Type Path to AllowNullInput
BarEditItem
.EditSettings .AllowNullInput
FilterField
.EditSettings .AllowNullInput
TokenEditorBehavior
.TokenEditSettings .AllowNullInput
GanttColumn
.ActualEditSettings .AllowNullInput
ColumnBase
.ActualEditSettings .AllowNullInput
GridColumn
.ActualEditSettings .AllowNullInput
TreeListColumn
.ActualEditSettings .AllowNullInput
TreeViewControl
.EditSettings .AllowNullInput
CollectionDefinition
.EditSettings .AllowNullInput
PropertyDefinition
.EditSettings .AllowNullInput
SpreadsheetCustomCellEditEventArgs
.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

The CTRL + 0 key combination does not work when using a French or German 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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowNullInput property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also