Basically you need to remove last 2 rows of your datatable. use below code to do that
dt.AsEnumerable.Take(dt.Rows.Count -2).CopyToDataTable
If you get any error on asenumerable function. refere below link
Regards
Roshan
Basically you need to remove last 2 rows of your datatable. use below code to do that
dt.AsEnumerable.Take(dt.Rows.Count -2).CopyToDataTable
If you get any error on asenumerable function. refere below link
Regards
Roshan