Posted on: 12/18/2013 8:25:59 PM | Views : 897

Hello, I'm exporting grdview to excel, I can export only the values of BoundField and the TemplateField that comes from database... Below the code:
<asp:GridView ID="Gridview1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1"> <Columns> <asp:BoundField DataField="ContactName" HeaderText="Contact Name" ItemStyle-Width="150px" /> <asp:BoundField DataField="City" HeaderText="City" ItemStyle-Width="100px" /> <asp:BoundField DataField="Country" HeaderText="Country" ItemStyle-Width="100px" /> <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="TextBox1" runat="server" ...

Go to the complete details ...