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

DataSourcePropertyAttribute(String, DataSourcePropertyIsNullMode) Constructor

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public DataSourcePropertyAttribute(
    string dataSourceProperty,
    DataSourcePropertyIsNullMode mode
)

Parameters

Name Type Description
dataSourceProperty String

A string value specifying the name of a collection property used as the data source for a List View displayed in a Lookup Property Editor or invoked by the LinkUnlinkController.LinkAction Action in a popup window.

mode DataSourcePropertyIsNullMode

A DataSourcePropertyIsNullMode enumeration value specifying the display mode for the target property’s Lookup List View if the DataSourcePropertyAttribute.DataSourceProperty is not specified.

Remarks

If you do not need to specify the display mode if the property specified by the dataSourceProperty parameter is not set, use the constructor with only the dataSourceProperty parameter.

If you are going to pass the DataSourcePropertyIsNullMode.CustomCriteria value as the dataSourcePropertyIsNullMode parameter, use the constructor with three parameters. Pass the custom criteria as the third DataSourcePropertyAttribute.DataSourcePropertyIsNullCriteria parameter.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataSourcePropertyAttribute(String, DataSourcePropertyIsNullMode) constructor.

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