Datagrid Sort Columns

NeilA

Member
Joined
Aug 31, 2006
Messages
14
Programming Experience
1-3
I have a datagrid that has say 2 records displaying. I ahve code which can delete one of those records if I click on it and hit delete. Thats the ok bit. If I click on a header of the column to sort the data and say the two records sort in a different order so the pervious fitrst one is now the last on in the list, I get problem when deleting. It will delete the other record and not the correct one. Is there something I have to do if the user sorrts the list and then deletes? The grid is based on a dataset.
 
Back
Top