windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontroloptions-fe4d2e48.md
Allows you to specify whether to prohibit the ObjectDataSource data retrieval, prompt the user or silently load the data.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
public DataSourceOptionsContainer DataSourceOptions { get; }
Public ReadOnly Property DataSourceOptions As DataSourceOptionsContainer
| Type | Description |
|---|---|
| DataSourceOptionsContainer |
An object that contains data source options.
|
You can access this nested property as listed below:
| Object Type | Path to DataSourceOptions |
|---|---|
| SpreadsheetControl |
.Options .DataSourceOptions
|
If the DataSourceOptions specifies to prompt the user, the ObjectDataSourceValidationService service is called for validation. You can implement your own service and provide a custom validation instead of displaying the default warning dialog.
spreadsheetControl1.Options.DataSourceOptions.ObjectDataSourceLoadingBehavior = DevExpress.DataAccess.DocumentLoadingBehavior.Prompt;
spreadsheetControl1.Options.DataSourceOptions.ObjectDataSourceLoadingBehavior = DevExpress.DataAccess.DocumentLoadingBehavior.Prompt
See Also
SpreadsheetControlOptions Class