You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
I think it'd be a good idea to have a "headerRowIndex" parameter in "ToList" extension method to start reading the rows from a certain row index. "CheckAndThrowIfDuplicatedColumnsFound" and "CheckHeadersAndThrow" methods have this parameter and the validation works well.
The text was updated successfully, but these errors were encountered:
// The header isn't on the first row but on the fifthintheaderRowIndex=5;// Create a temp worksheet to copy the rows from the original one to the first rowvarrowsWorksheet=package.AddWorksheet("Rows");worksheet.Cells[FromRow:headerRowIndex,FromCol:1,ToRow:worksheet.Dimension.End.Row,ToCol:worksheet.Dimension.End.Column].Copy(rowsWorksheet.Cells[FromRow:1,FromCol:1,ToRow:worksheet.Dimension.End.Row-headerRowIndex,ToCol:worksheet.Dimension.End.Column]);varrows=rowsWorksheet.ToList<MyClass>();
Hi.
I think it'd be a good idea to have a "headerRowIndex" parameter in "ToList" extension method to start reading the rows from a certain row index. "CheckAndThrowIfDuplicatedColumnsFound" and "CheckHeadersAndThrow" methods have this parameter and the validation works well.
The text was updated successfully, but these errors were encountered: