Back to Devexpress

DataSourcePropertyAttribute.DataSourcePropertyIsNullMode Property

expressappframework-devexpress-dot-persistent-dot-base-dot-datasourcepropertyattribute-155a93b0.md

latest3.3 KB
Original Source

DataSourcePropertyAttribute.DataSourcePropertyIsNullMode Property

Specifies the Lookup Property Editor’s data source, in case the collection property specified by the DataSourcePropertyAttribute.DataSourceProperty is set to null.

Namespace : DevExpress.Persistent.Base

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public DataSourcePropertyIsNullMode DataSourcePropertyIsNullMode { get; }
vb
Public ReadOnly Property DataSourcePropertyIsNullMode As DataSourcePropertyIsNullMode

Property Value

TypeDescription
DataSourcePropertyIsNullMode

A DataSourcePropertyIsNullMode enumeration value that specifies the Lookup Property Editor’s data source.

|

Available values:

NameDescription
SelectNothing

Specifies that the property’s Lookup List View is bound to an empty collection.

| | SelectAll |

Specifies that the property’s Lookup List View is bound to a collection of all existing persistent objects of the property’s type.

| | CustomCriteria |

Specifies that the Lookup List View is bound to a collection containing the objects that satisfy the criteria. The criteria should be specified by the DataSourcePropertyAttribute.DataSourcePropertyIsNullCriteria parameter of the DataSourcePropertyAttribute.

|

Remarks

You can change the DataSourcePropertyIsNullMode ‘s value specified in code via the BOModel | <Class> | OwnMembers | <Member> node’s IModelCommonMemberViewItem.DataSourcePropertyIsNullMode property in the Model Editor.

To learn how to specify the Lookup Property Editor’s data source via the DataSourcePropertyAttribute, refer to the How to: Implement Cascading Filtering for Lookup List Views topic.

See Also

DataSourcePropertyAttribute Class

DataSourcePropertyAttribute Members

DevExpress.Persistent.Base Namespace