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

ExcelSourceOptionsBaseViewModel.UseFirstRowAsHeader Property

Specifies whether to process the values of the first row as headers.

Namespace: DevExpress.Xpf.DataAccess.DataSourceWizard

Assembly: DevExpress.Xpf.DataAccess.v24.2.dll

NuGet Package: DevExpress.Wpf.Reporting

#Declaration

public virtual bool UseFirstRowAsHeader { get; set; }

#Property Value

Type Description
Boolean

true, to process the values of the first row as headers; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to UseFirstRowAsHeader
ChooseFileOptionsPage
.SourceOptionsViewModel .UseFirstRowAsHeader

#Remarks

If you set the UseFirstRowAsHeader property to false, field names will be generated automatically.

If necessary, you can disable this option and create a custom schema for the Excel data source using the ConfigureExcelFileColumnsPage.Schema property.

See Also