Hi,
I think there is a weird behavior in IXLDataTable.DataRange.RowCount().
My code:
var dataRange = worksheetMain.Range(cellTableStart, cellTableEnd);
var tableMData = dataRange.AsTable();
fileTotalRecords = tableMData.DataRange.RowCount();
If the original range contains:
1 header row
+2 data rows
The RowCount is 2.
If the range contains:
1 header row
+ No data
The RowCount is 1.
Looks like a bug?
Or is there an explanation?
I think there is a weird behavior in IXLDataTable.DataRange.RowCount().
My code:
var dataRange = worksheetMain.Range(cellTableStart, cellTableEnd);
var tableMData = dataRange.AsTable();
fileTotalRecords = tableMData.DataRange.RowCount();
If the original range contains:
1 header row
+2 data rows
The RowCount is 2.
If the range contains:
1 header row
+ No data
The RowCount is 1.
Looks like a bug?
Or is there an explanation?