I have this code until now:
<asp:TemplateField ShowHeader="False" ItemStyle-Width="150px" HeaderStyle-BackColor="#003ca1" HeaderStyle-ForeColor="white">
<ItemTemplate>
<asp:LinkButton ID="linkDelete" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick='return confirm("Diesen Eintrag wirklich löschen?");' Text="Löschen" />
</ItemTemplate>
</asp:TemplateField>
At this moment, the GridView deletes the row physically. I want to catch this in CodeBehind, cancel the delete-operation and want only set a "IsDeleted"-Flag in the database.
How?