If the employee ID starts with the number 1, delete the row otherwise, continue with the next row.

If the employee ID starts with the number 1, delete the row otherwise, continue with the next row.

dt.AsEnumerable().Where(Function(row) Not row("Employee ID").ToString.StartsWith("1")).CopyToDataTable()
Regards,
@lrtetala Thank you for the prompt response and solution.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.