Skip to main content
A newer version of this page is available. .

ExcelSourceOptions.ImportSettings Property

Gets or sets settings used to import data from the Microsoft Excel workbook.

Namespace: DevExpress.DataAccess.Excel

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

[DefaultValue(null)]
[TypeConverter(typeof(LocalizableExpandableObjectTypeConverter))]
[LocalizableCategory(DataAccessStringId.PropertyGridDataCategoryName)]
public ExcelSettingsBase ImportSettings { get; set; }

Property Value

Type Default Description
ExcelSettingsBase *null*

A ExcelSettingsBase descendant containing settings used to import data from the Microsoft Excel workbook.

Remarks

The ImportSettings property exposed by the ExcelSourceOptions class allows you to specify the approach used to import data from a workbook. For instance, you can select all data from the specified worksheet or specify the required cell range. To import data from the workbook, create the required ExcelSettingsBase object descendant and specify its settings.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ImportSettings property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also