The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

RangeDataSourceOptions.UseFirstRowAsHeader Property

Specifies whether to use the text contained in the first row cells of the data source range as column headers.

Namespace: DevExpress.Spreadsheet

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

Declaration

public bool UseFirstRowAsHeader { get; set; }
Public Property UseFirstRowAsHeader As Boolean
public bool UseFirstRowAsHeader { get; set; }
Public Property UseFirstRowAsHeader As Boolean
public bool UseFirstRowAsHeader { get; set; }
Public Property UseFirstRowAsHeader As Boolean

Property Value

Type Description
Boolean

true, to retrieve the column names from the corresponding cells of the first row; otherwise, false.

Property Value

Type Description
Boolean

true, to retrieve the column names from the corresponding cells of the first row; otherwise, false.

Property Value

Type Description
Boolean

true, to retrieve the column names from the corresponding cells of the first row; otherwise, false.

Remarks

If any of the cells within the first row is empty, the header for the corresponding column is Column X, where X is the ordinal number of the column with empty header. If the first row contains duplicate names, an ArgumentException in thrown.

Instead of using headers to specify column names, you can implement a custom class which provides column names. Assign an instance of this class to the RangeDataSourceOptions.DataSourceColumnTypeDetector property when creating a data source.

See Also