General Information
.NET Subscription
Desktop
Web
Controls and Extensions
Mainteinance Mode
Enterprise and Analytic Tools
Quality Assurance and Productivity
Frameworks and Libraries
General Information
.NET Subscription
Desktop
Web
Controls and Extensions
Mainteinance Mode
Enterprise and Analytic Tools
Quality Assurance and Productivity
Frameworks and Libraries
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
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.