How to add Link Button In dynamically in Autogenerated Gridview and How write onclick event for that link button.
<asp:GridView ID="GridView4" runat="server" BorderColor="#3366CC" BorderStyle="None"
BorderWidth="1px" CellPadding="4" ShowHeaderWhenEmpty="True" Width="996px" HeaderStyle-Wrap="false"
ItemStyle-Wrap="false" OnRowDataBound="GridView4_RowDataBound">
<PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" LastPageText="Last"
NextPageText="Next" PreviousPageText="Previous" />
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" Height="10px" />
<RowStyle ForeColor="white" HorizontalAlign="Center" Font-Names="Microsoft Sans Serif" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<SortedAscendingCellStyle BackColor="#EDF6F6" />
<SortedAscendingHeaderStyle BackColor="#0D4AC4" />
<SortedDescendingCellStyle BackColor="#D6DFDF" />
<SortedDescendingHeaderStyle BackColor="#002876" />
</asp:GridView>
Binded Datas to this gridview dynamically..the Header and data's changes everytime.
Need to bind all the datas in link button and to write code for that button click.
Please help.........................