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

Closed Issue: Version 68.1 changed order of Rows collection [8373]

$
0
0
I upgraded from version 67.2 to version 68.1 and now the following code does not work.

int rowCount = 0;
XLWorkbook sourceWB = new XLWorkbook(fileLocation);
IXLWorksheet sourceWS = sourceWB.Worksheet(1);
foreach (IXLRow row in sourceWS.Rows())
{
rowCount = row.RowNumber();
...
}

In version 67.2 and all prior versions this gave me each row in order starting at row 1.
Now in version 68.1 the first row in the list is the row of the cell that was selected when the file was saved.

This breaks all my existing code because I expect the first row in the list to be the header row and I depend on the rows being in order.

Thank you.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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