.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

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.1.Core.dll


public bool UseFirstRowAsHeader { get; set; }

Property Value

Type Description

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


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