I have handelled something like your situation like this
In the grid HTML code i have added the following line
and on the server side i have an event for GridView_RowCommand and in that i handle the event as shown
switch (e.CommandName)
{
case "Delete":
//Delete what you want to
break;
}
hope this helps