Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Convert range to table, treat all rows as data rows

$
0
0
I need to read data from an Excel file into a DataTable, and the Excel file may not include column headers. I have tried using IXLRange.AsTable() as well as IXLRange.CreateTable(), and apparently both methods treat the first row in the range as a header row. That first row needs to be included in the table. Is there a more appropriate method I should use?

Thanks in advance.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>