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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top