Preventing a delete in a datatable
Posted on 2004-09-29
I have a DataGrid bound to a DataTable, obviously when a user hits the delete key it will delete the highlighted row. I added an event handler for the DataTable.RowDeleting event. What I want to do is prompt the user and if they choose not to delete the row then cancel the delete. How do I do this?