c# Excel skipping first row?

后端 未结 3 947
轻奢々
轻奢々 2021-01-18 08:32

I\'m importing an xls file using OleDbCommand to a ds. Problem I\'m having is during the foreach on my ds its skipping for first row. I can\'t figure out why. Any suggest

3条回答
  •  抹茶落季
    2021-01-18 09:13

    Check your connection string. Most likely it contains:

    HDR=Yes
    

    which indicates that first row is a header

提交回复
热议问题