Hi! I am trying to delete the first 10 rows of data and have the result data table’s index starting from 0 again. I am currently trying with dt = dt.AsEnumerable().Skip(9).CopyToDataTable, but that seemed to set all index of the result data table to -1 for some reason. Does anyone know what might be going on or maybe have a better idea? Thanks!!
Welcome to the forum
dt = dt.AsEnumerable().Skip(10).CopyToDataTable
10 is the length of rows to skip should work
if not please elaborate more on
set all index of the result data table to -1
Yeah sorry I just found an error in another step. This is definitely the correct way to skip. Thank you so much for your reply!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.