Back to Devexpress

SpreadsheetDataSourceWizardOptions.CustomAssemblyBehavior Property

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetdatasourcewizardoptions.md

latest3.5 KB
Original Source

SpreadsheetDataSourceWizardOptions.CustomAssemblyBehavior Property

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

Declaration

csharp
[DefaultValue(SpreadsheetCustomAssemblyBehavior.Prompt)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }
vb
<DefaultValue(SpreadsheetCustomAssemblyBehavior.Prompt)>
Public Property CustomAssemblyBehavior As SpreadsheetCustomAssemblyBehavior

Property Value

TypeDefaultDescription
SpreadsheetCustomAssemblyBehaviorPrompt

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:

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CustomAssemblyBehavior
SpreadsheetControlOptions

.DataSourceWizard .CustomAssemblyBehavior

|

Remarks

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

CustomAssemblyBehavior

CustomAssemblyLoading

ICustomAssemblyLoadingNotificationService

SpreadsheetDataSourceWizardOptions Class

SpreadsheetDataSourceWizardOptions Members

DevExpress.XtraSpreadsheet Namespace