Click or drag to resize

RangeToDataTable Method

Get DataTable representation of current range.

Useful when working with DataGrids or System.Data or Entity Framework

Namespace:  IronXL.Ranges
Assembly:  IronXL (in IronXL.dll) Version: 2019.3.2
Syntax
public DataTable ToDataTable(
	bool useFirstRowAsColumnNames = false
)

Parameters

useFirstRowAsColumnNames (Optional)
Type: SystemBoolean
Indicates whether to use first row as column names or not

Return Value

Type: DataTable
A DataTable representation of current range.

Implements

IRangeToDataTable(Boolean)
See Also