anwarmir
asked on
how to delete a row from a datatable
I currently want to delete a row from a datatable. I am identiyiny the row by using the find method on a item in a listbox. Can someone tell me how i can delete the row from the datatable dtheldbatch
Dim dr As DataRow = dtHeldBatch.Rows.Find(List BoxPostBat ch.ValueMe mber)
Dim dr As DataRow = dtHeldBatch.Rows.Find(List
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
after you have identified the row u can delete it like eg.
Dim dt As New DataTable
dt.Rows(0).Delete()
This should work fine.
--JAMU--