Gridview - delete command - better control of the delete command

Hi there

I want some server side validation to occur when the delete button is clicked. When the button is clicked i will perform a DB query and if it comes back postive then i want the DELETE action to not occur.

The only 2 events that show up for the DELETE command are

1 - GridView1_RowDeleting

2 - GridView1_RowDeleted

Both of these perform the BD query but the delete command still persists. Is there a way to stop it occuring.

I cannot seem to do this.