Skip to main content
.NET Framework 4.5.2+

DataSourcePropertyAttribute(String) Constructor

Initializes a new instance of the DataSourcePropertyAttribute class with the specified DataSourcePropertyAttribute.DataSourceProperty property.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v22.1.dll


public DataSourcePropertyAttribute(
    string dataSourceProperty


Name Type Description
dataSourceProperty String

A string value representing the name of a business class collection property which serves as a source for the Lookup Property Editor of the target Object type business class property.


You can specify the data source for the Lookup Property Editor’s List View in case the property specified by the dataSourceProperty parameter is not set. For this purpose, use a constructor with the DataSourcePropertyAttribute.DataSourcePropertyIsNullMode and \ or DataSourcePropertyAttribute.DataSourcePropertyIsNullCriteria parameters.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSourcePropertyAttribute(String) constructor.


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