Same Pinch...! Me too sucked with the same Problem, and finally end up with this:-) Here i have Used ImageButton instead of Link Button..!
Put DataKey Property to your Grid as-
<asp:GridView ID="gvUser" Width="100%" runat="server" CssClass="Gridview"
AutoGenerateColumns="false" showfooter="true" DataKeyNames="UserID"
BorderColor="white" HeaderStyle-BackColor="#e0ffff"
HeaderStyle-BorderColor="#b0c4de" FooterStyle-BackColor="white"
onrowcancelingedit="gvUser_RowCancelingEdit" onrowdeleting="gvUser_RowDeleting"
onrowediting="gvUser_RowEditing" onrowupdating="gvUser_RowUpdating" >
Here i have created an event for row deleting-
protected void gvUser_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string id = gvUser.DataKeys[e.RowIndex].Value.ToString();
_objUserBAL.fnDeleteDetailByID("tt_Users", "UserId", id);
BindUserDataConfig();
BindReportingPerson();
}
USe DatakeyName to get the raised event.
All the Best:-)