<ItemTemplate>
<asp:LinkButton ID="LinkButton1" CommandName="export" OnClick="LinkButton1_Click" runat="server">LinkButton</asp:LinkButton>
</ItemTemplate>
Row DataBound Event
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lnk = e.Row.FindControl("LinkButton1") as LinkButton;
lnk.Click += new EventHandler(LinkButton1_Click);
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
}