ExcelWorksheetGetDataTable(ExcelRange, Boolean) Method
Gets a System.Data.DataTable object from the specified source range. If the getColumnNames parameter is true the
first row of the range will be used to obtain names for the DataTable columns.
Namespace: Winnovative.ExcelLibAssembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 11.0.0
public DataTable GetDataTable(
ExcelRange sourceRange,
bool getColumnNames
)
Public Function GetDataTable (
sourceRange As ExcelRange,
getColumnNames As Boolean
) As DataTable
public:
DataTable^ GetDataTable(
ExcelRange^ sourceRange,
bool getColumnNames
)
member GetDataTable :
sourceRange : ExcelRange *
getColumnNames : bool -> DataTable
- sourceRange ExcelRange
- The worksheet range from where to get the values.
- getColumnNames Boolean
- If this parameter is true the first row of the range will be used to obtain names
for the DataTable columns.
DataTableThe resulted DataTable.