How to create a delete button in GridView?

asp.net, c#, gridview

Solution

Here is a great article about typical usages of DataGrid.

Enjoy.

Problem

I made another Column in my `GridView` called delete. When delete is clicked, the row should be deleted or in other words, I need to get the current row's user name to delete it. - Which event should I use? (RowDeleting, Rowdeleted etc...) - How do I get the username from the current row?

Original source