Back to Devexpress

ExternalDataSourceOptions.ImportHeaders Property

officefileapi-devexpress-dot-spreadsheet-dot-externaldatasourceoptions.md

latest4.5 KB
Original Source

ExternalDataSourceOptions.ImportHeaders Property

Gets or sets whether the first row of the binding range will contain data field names.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public bool ImportHeaders { get; set; }
vb
Public Property ImportHeaders As Boolean

Property Value

TypeDescription
Boolean

True , to display data field names in the first row of the cell range specified for data binding; otherwise, false.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ImportHeaders 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.

how-to-bind-a-worksheet-to-a-generic-list-or-a-bindinglist-data-source/CS/DataBindingToListExample/Form1.cs#L49

csharp
ExternalDataSourceOptions dsOptions = new ExternalDataSourceOptions();
dsOptions.ImportHeaders = true;
dsOptions.CellValueConverter = new MyWeatherConverter();

spreadsheet-document-api-data-binding/CS/SpreadsheetApiDataBinding/Program.cs#L48

csharp
ExternalDataSourceOptions dsOptions = new ExternalDataSourceOptions();
dsOptions.ImportHeaders = true;
dsOptions.CellValueConverter = new MyWeatherConverter();

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/CS/DataBindingToListExample/MainWindow.xaml.cs#L52

csharp
ExternalDataSourceOptions dsOptions = new ExternalDataSourceOptions();
dsOptions.ImportHeaders = true;
dsOptions.CellValueConverter = new MyWeatherConverter();

how-to-bind-a-worksheet-to-a-generic-list-or-a-bindinglist-data-source/VB/DataBindingToListExample/Form1.vb#L52

vb
Dim dsOptions As New ExternalDataSourceOptions()
dsOptions.ImportHeaders = True
dsOptions.CellValueConverter = New MyWeatherConverter()

spreadsheet-document-api-data-binding/VB/SpreadsheetApiDataBinding/Program.vb#L42

vb
Dim dsOptions As New ExternalDataSourceOptions()
dsOptions.ImportHeaders = True
dsOptions.CellValueConverter = New MyWeatherConverter()

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/VB/DataBindingToListExample/MainWindow.xaml.vb#L55

vb
Dim dsOptions As New ExternalDataSourceOptions()
dsOptions.ImportHeaders = True
dsOptions.CellValueConverter = New MyWeatherConverter()

See Also

ExternalDataSourceOptions Class

ExternalDataSourceOptions Members

DevExpress.Spreadsheet Namespace