You should use OnRowCommand and use link button,
protected void rowwcommandname(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "name of the command")
{
string[] DCdata = e.CommandArgument.ToString().Split(',');
<here you="" can="" play="" with="" the="" data="">
}
}</here>
Bind Template -----
<ItemTemplate>
<div style="float:left; margin:7px 0;">
<asp:LinkButton ID="btnEmail" runat="server" Text="<%$Resources: Resource, btnEmail %>"
CommandName="SendMail" CssClass="button" CommandArgument= '<%# Eval("DocumentCenterId") + "," + Eval("EmailId") %>'
meta:resourcekey="btnEmailResource1"
/><div class="buttonEnding"></div>
</div>
</ItemTemplate>