Skip to main content

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.v24.2.dll

Declaration

[DefaultValue(SpreadsheetCustomAssemblyBehavior.Prompt)]
public SpreadsheetCustomAssemblyBehavior CustomAssemblyBehavior { get; set; }

Property Value

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.

Property Paths

You can access this nested property as listed below:

Object Type Path 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