G
Guest
I have a datagrid whose datasource is a datatable. I want the user to select
(multiple) rows in the datagrid, press a button and have the selected rows
deleted. Iterating through the rows in the datagrid and testing to see if
each is selected and then deleting the associated datarow from the datatable
is probably inefficient but nevertheless doesn't work because the selected
rows in the datagrid are reset as soon as the first record is deleted from
the datatable. Is there an obviously correct method for doing this?
(multiple) rows in the datagrid, press a button and have the selected rows
deleted. Iterating through the rows in the datagrid and testing to see if
each is selected and then deleting the associated datarow from the datatable
is probably inefficient but nevertheless doesn't work because the selected
rows in the datagrid are reset as soon as the first record is deleted from
the datatable. Is there an obviously correct method for doing this?