SnapControlOptions.DataSourceOptions Property
Allows you to specify whether to prohibit the ObjectDataSource data retrieval, prompt the user or silently load the data.
Namespace: DevExpress.Snap
Assembly: DevExpress.Snap.v18.2.dll
Declaration
Property Value
Type |
---|
DataSourceOptionsContainer |
Property Paths
You can access this nested property as listed below:
Object Type | Path to DataSourceOptions |
---|---|
SnapControl |
|
Remarks
If the DataSourceOptions specifies prompting the user, the IObjectDataSourceValidationService service is called for validation. You can implement your own service and provide a custom validation instead of displaying the default warning dialog.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-validate-the-objectdatasource-contained-in-the-snap-document-t514281
snapControl1.Options.DataSourceOptions.ObjectDataSourceLoadingBehavior = DevExpress.DataAccess.DocumentLoadingBehavior.Prompt;
See Also