You can Use AutoGenerate Properties to enable user to edit row, and delete row..
And GridView Provides Several Events like
1)OnRowEdit
2)OnRowEdited
3)OnRowSelected
4)OnRowDeleting
5)OnRowDeleted
etc..
And make use of these events, if you want to make any changes while editing deleting.
<asp:gridview autogenerateeditbutton="True" autogeneratedeletebutton="True" xmlns:asp="#unknown">
runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2"
onrowediting="My_RowEditing" onrowupdated="My_RowUpdated" >
<columns>
<asp:boundfield datafield="gender" headertext="gender">
SortExpression="gender" />
</asp:boundfield></columns>
</asp:gridview>