Delete data row from data table

Hey @mgangrade7

To delete rows from datatable, you could use the logic like this:

  1. Use the select function on the datatable to filter the rows that match your condition and this will return an array of Datarows.
  2. Then use a for each loop and remove each row from the Array of Datarows using datatable.Rows.Remove(row);

For Your Reference find the attached sample solution: Delete_Data_Row_From_Datatable.zip (7.7 KB)

Regards…!!
Aksh

11 Likes