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

ObjectDataSourceValidationService.Validate(IEnumerable<ObjectDataSource>) Method

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

Namespace: DevExpress.XtraSpreadsheet.Services

Assembly: DevExpress.XtraSpreadsheet.v24.2.dll

NuGet Package: DevExpress.Win.Spreadsheet

#Declaration

public void Validate(
    IEnumerable<ObjectDataSource> dataSources
)

#Parameters

Name Type Description
dataSources IEnumerable<ObjectDataSource>

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

#Remarks

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

See Also