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
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