Back to Devexpress

RangeDataSourceOptions.DataSourceColumnTypeDetector Property

officefileapi-devexpress-dot-spreadsheet-dot-rangedatasourceoptions-69431b32.md

latest3.7 KB
Original Source

RangeDataSourceOptions.DataSourceColumnTypeDetector Property

Gets or sets the detector used to identify the name and type of each column in the resulting data source.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public IDataSourceColumnTypeDetector DataSourceColumnTypeDetector { get; set; }
vb
Public Property DataSourceColumnTypeDetector As IDataSourceColumnTypeDetector

Property Value

TypeDescription
IDataSourceColumnTypeDetector

An object implementing the IDataSourceColumnTypeDetector interface.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSourceColumnTypeDetector 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.

spreadsheet-document-api-use-worksheet-table-as-data-source/CS/SpreadsheetDocumentServerAsDataSourceExample/Form1.cs#L28

csharp
options.CellValueConverter = new MyPictureProvider(wb.Worksheets[0]);
options.DataSourceColumnTypeDetector = new MyColumnDetector();
string dsName = wb.Worksheets[0].Tables[0].Name;

winforms-spreadsheet-use-cell-range-as-data-source/CS/RangeDataSource/Form1.cs#L35

csharp
options.UseFirstRowAsHeader = false;
    options.DataSourceColumnTypeDetector = new MyColumnDetector();
}

spreadsheet-document-api-use-worksheet-table-as-data-source/VB/SpreadsheetDocumentServerAsDataSourceExample/Form1.vb#L22

vb
options.CellValueConverter = New MyPictureProvider(wb.Worksheets(0))
options.DataSourceColumnTypeDetector = New MyColumnDetector()
Dim dsName As String = wb.Worksheets(0).Tables(0).Name

winforms-spreadsheet-use-cell-range-as-data-source/VB/RangeDataSource/Form1.vb#L39

vb
options.UseFirstRowAsHeader = False
    options.DataSourceColumnTypeDetector = New MyColumnDetector()
End If

See Also

RangeDataSourceOptions Class

RangeDataSourceOptions Members

DevExpress.Spreadsheet Namespace