The GridView.RowCommand Event
] will handle the button click.
You need to add one attribute
inside GridView MarkUp.
And define the Event in Code Behind as follows.
void MyGridView_RowCommand(Object sender, GridViewCommandEventArgs e)
Refer the MSDN link given above to know more and see the implementations.