Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Win.Spreadsheet

#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