windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetdatasourcewizardoptions.md
Enables you to specify whether the Data Source Wizard can load a custom assembly containing the Entity Framework data context during mail merge.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
[DefaultValue(SpreadsheetCustomAssemblyBehavior.Prompt)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }
<DefaultValue(SpreadsheetCustomAssemblyBehavior.Prompt)>
Public Property CustomAssemblyBehavior As SpreadsheetCustomAssemblyBehavior
| Type | Default | Description |
|---|---|---|
| SpreadsheetCustomAssemblyBehavior | Prompt |
A SpreadsheetCustomAssemblyBehavior enumeration value that specifies whether to load an assembly without prompting, to not load and disable browsing for the assembly file, or pass the request to a special service.
|
Available values:
| Name | Description |
|---|---|
| Prompt |
Decide whether to load each custom assembly. Raise the CustomAssemblyLoading event and check the arguments. If the event is not handled - query the notification service. Cancel loading if neither event nor service provide a response.
| | LoadSilently |
Custom assemblies can be loaded without notice.
| | NeverLoad |
No custom assembly can ever be loaded.
|
You can access this nested property as listed below:
| Object Type | Path to CustomAssemblyBehavior |
|---|---|
| SpreadsheetControlOptions |
.DataSourceWizard .CustomAssemblyBehavior
|
Tip
Use the SpreadsheetDataSourceLoadingOptions.CustomAssemblyBehavior property to specify whether the SpreadsheetControl can load a custom assembly containing the Entity Framework data context to perform mail merge.
See Also
Mail Merge in WinForms Spreadsheet Control
ICustomAssemblyLoadingNotificationService
SpreadsheetDataSourceWizardOptions Class