help deleting row from datatable

S

Shawn Mason

I have a datagrid that is bound to a dataset and the dataset is not tied to
a
database (so deleting the record in the db and re-filling the datatable
doesn't work). I have a linkbutton column defining a "delete" event. So
far so good. I have figured out how to get the Primary Key of the
datarow upon clicking the delete column with:

Dim SelectedID As String = dgPastDrugs.DataKeys(e.Item.ItemIndex)

This value is correct. What I can't figure out is how to remove the
row from the datatable.

TIA,

Shawn
 

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

Top