1. You will have to add a commandname="View" and commandargument to your link button.
2. After that add the "OnRowCommand" event for the gridview.
3. In OnRowCommand event write what ever you wanted to write in linkbutton click event.
protected void gridview1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "View")
{
}
}
If you dont understand what I am trying to say kindly go through the link provided below.
http://stackoverflow.com/questions/23180346/click-event-of-link-button-inside-a-gridview-not-working-in-a-web-page-asp-net[
^]