A newer version of this page is available. Switch to the current version.

ObjectDataSourceValidationService.Validate(IEnumerable<ObjectDataSource>) Method

Provides default validation of the specified ObjectDataSource data objects before data retrieval.

Namespace: DevExpress.XtraSpreadsheet.Services

Assembly: DevExpress.XtraSpreadsheet.v19.1.dll


public void Validate(
    IEnumerable<ObjectDataSource> dataSources


Name Type Description
dataSources IEnumerable<ObjectDataSource>

A IEnumerable<T><ObjectDataSource,> collection of ObjectDataSource instances to validate.


When the user denies the data source loading, the ObjectDataSource.DataSource and ObjectDataSource.DataMember properties are set to null.

See Also