You can simply use GridView RowCommand and CommandArgument for the same.
Try out like this,
<asp:templatefield xmlns:asp="#unknown">
<headertemplate>
Delete
</headertemplate>
<itemtemplate>
<asp:imagebutton commandname="DeleteCommand" commandargument="<%# Eval(" id=" )%>" imageurl="/test.pmg">
ID="lnk" runat="server" />
</asp:imagebutton></itemtemplate>
</asp:templatefield>
and in codebehind
Protected Void Grid_RowCommand(object sender, GridViewEventArgs e)
{
if(e.CommandName=="DeleteCommand")
{
CheckBox cb= (CheckBox)e.Row.findControl("chkbox");
if(cb.Checked)
{
DeletedRecord(e.CommandArgument);
}
}
}
Please check for the syntax.