none
DataTable.Load RRS feed

  • Question

  • I have a SQLDataReader that contains 11 rows

    When loading the data table as follows

    DataTable.Load(SQLDataReader)

    It only loads 10 rows. What happened to Number 11? i.e. the first row is missing.

    when looping through the DataReader and using DataTable.LoadDataRow({c1, c2, c3, ...}, false)

    I get all 11 rows.

    What gives here? I'm hoping I will not have to go through all of my code and replace the table loads.

    Framework is .NET 4


    Lee


    • Edited by Lee Taylor Friday, April 12, 2013 7:49 PM
    Friday, April 12, 2013 7:47 PM

Answers

All replies