The LastColIndex/ LastRowIndex are reversed. Here's the correct code:
DatasetHelper.PopulateDataTable:
..
// Extract columns
for (int i = 0; i <= Cells.LastColIndex; i++)
dt.Columns.Add(Cells[0, i].StringValue, typeof(String));
// Extract data
for (int currentRowIndex = 1; currentRowIndex <=
Cells.LastRowIndex; currentRowIndex++)
{
..
Original issue reported on code.google.com by marco.di...@gmail.com on 11 Feb 2009 at 9:33
Original issue reported on code.google.com by
marco.di...@gmail.com
on 11 Feb 2009 at 9:33