Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PopulateDataTable cols / rows is reversed #8

Closed
GoogleCodeExporter opened this issue Feb 5, 2016 · 1 comment
Closed

PopulateDataTable cols / rows is reversed #8

GoogleCodeExporter opened this issue Feb 5, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

thanks. fix at r17

Original comment by jetcat on 12 Feb 2009 at 3:26

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant