Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LookUpEditSettingsBase.SelectItemWithNullValue Property

Gets or sets whether the editor searches for a null item in the bound data source when the editor value is null (empty). This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool SelectItemWithNullValue { get; set; }

#Property Value

Type Description
Boolean

true, to find and select an item with null value; otherwise, false.

#Remarks

In versions before 18.1, the editor searched for the null value in the source collection when its value was empty. This led to performance issues in forms with empty editors bound to large data sources.

Starting with version 18.1, the editor does not select any item in the source collection when its value is null. If items or value properties (specified in the editor’s LookUpEditSettingsBase.ValueMember property) in your source collection can be empty and you want to select them by assigning null to the editor’s edit value, set the SelectItemWithNullValue property to true.

See Also