Use RowCommand event if you have problem related Button like controls)'s click event inside asp:GridView.
The RowCommand event is raised when a button is clicked in the GridView control. This enables you to provide an event-handling method that performs a custom routine whenever this event occurs.
Buttons within a GridView control can also invoke some of the built-in functionality of the control. To perform one of these operations, set the CommandName property of a button to one of the values in the following table.
Syntax: public event GridViewCommandEventHandler RowCommand
See usage example here.