officefileapi-devexpress-dot-spreadsheet-dot-externaldatasourceoptions.md
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
public bool ImportHeaders { get; set; }
Public Property ImportHeaders As Boolean
| Type | Description |
|---|---|
| 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.
ExternalDataSourceOptions dsOptions = new ExternalDataSourceOptions();
dsOptions.ImportHeaders = true;
dsOptions.CellValueConverter = new MyWeatherConverter();
spreadsheet-document-api-data-binding/CS/SpreadsheetApiDataBinding/Program.cs#L48
ExternalDataSourceOptions dsOptions = new ExternalDataSourceOptions();
dsOptions.ImportHeaders = true;
dsOptions.CellValueConverter = new MyWeatherConverter();
ExternalDataSourceOptions dsOptions = new ExternalDataSourceOptions();
dsOptions.ImportHeaders = true;
dsOptions.CellValueConverter = new MyWeatherConverter();
Dim dsOptions As New ExternalDataSourceOptions()
dsOptions.ImportHeaders = True
dsOptions.CellValueConverter = New MyWeatherConverter()
spreadsheet-document-api-data-binding/VB/SpreadsheetApiDataBinding/Program.vb#L42
Dim dsOptions As New ExternalDataSourceOptions()
dsOptions.ImportHeaders = True
dsOptions.CellValueConverter = New MyWeatherConverter()
Dim dsOptions As New ExternalDataSourceOptions()
dsOptions.ImportHeaders = True
dsOptions.CellValueConverter = New MyWeatherConverter()
See Also
ExternalDataSourceOptions Class