add
LinkButton
with
RowCommand
like below
<asp:gridview autogeneratecolumns="false" runat="server" id="grdCustomPagging" onrowcommand="grdCustomPagging_RowCommand" >
<columns>
<asp:linkbutton runat="server" id="lnkView" commandargument='<%#Eval("DealId") %>'>
CommandName="VIEW">View Deal</asp:linkbutton>
</columns>
</asp:gridview>
in
RowCommand
event you can load the graph like below
protected void grdCustomPagging_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "VIEW")
{
LinkButton lnkView = (LinkButton)e.CommandSource;
string dealId = lnkView.CommandArgument;
}
}
check
How to handle click event of linkbutton inside gridview[
^]