Removing rows from the datatable

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

Hi,

I have a DataTable, which will have 2 Columns, one column holds Unique
values.

I will use DataTable.Select(Unique value) and Filter the Matching rows,

After filtering those rows I want to Delete those rows from the datatable.

Is it possible to remove the filtered rows and reflect back to the
DataTable?

TIA,

Gary
 
Not sure about the datatable, but you can create a DataView based on the
table, Set the rowfilter so you only show the rows you want to delete and
then delete each of the rows in the DataView. I think you can also simply
use Row.Delete(rowName) .

HTH,

Bill
 
Back
Top