I seem to be having an issue with the GridTemplateColumn. In it, I have 2 headers and the top one spans over 3 columns. On the bottom header, for each column I put in a linkbutton which allows the user to sort by that specific column. Everything works fine and dandy except when I go to export the grid. For some reason, it creates another row in excel below the bottom header, and merges the text of those linkbuttons into one cell on the new row. If I changed those linkbuttons to just text, then it exports fine.
Here is the code for my grid:
Any help would be appreciated.
Thanks in advance!
Zach
Here is the code for my grid:
<MasterTableView Width="947px" Name="gtvReport0"> |
<Columns> |
<t:GridTemplateColumn HeaderStyle-Width="300px" UniqueName="Payments" ShowSortIcon="false"> |
<HeaderTemplate> |
<table id="tablePmt1" style="width:100%;" class="myTable"> |
<tr> |
<td colspan="3" align="center">Payments</td> |
</tr> |
<tr> |
<td align="right"> |
<asp:LinkButton ID="lbSortByOneTimePmt" Text="One-Time" ToolTip="Click here to sort" CommandName='Sort' |
CommandArgument='Internet Payments' runat="server" Width="100%" /> |
</td> |
<td style="width:33%" align="right"> |
<asp:LinkButton ID="lbSortByRecurringPmt" Text="Recurring" ToolTip="Click here to sort" CommandName='Sort' |
CommandArgument='Recurring Payments' runat="server" Width="100%" /> |
</td> |
<td style="width:33%" align="right"> |
<asp:LinkButton ID="lbSortByTotalPmt" Text="Total" ToolTip="Click here to sort" CommandName='Sort' |
CommandArgument='Total Payments' runat="server" Width="100%" /> |
</td> |
</tr> |
</table> |
</HeaderTemplate> |
<ItemTemplate> |
<table id="tablePmt2" style="width:100%;" class="myTable"> |
<tr> |
<td align="right"><%#Eval("Internet Payments") %></td> |
<td style="width:33%;" align="right"><%#Eval("Recurring Payments")%></td> |
<td style="width:33%" align="right"><%#Eval("Total Payments")%></td> |
</tr> |
</table> |
</ItemTemplate> |
</t:GridTemplateColumn> |
</Columns> |
</MasterTableView> |
Any help would be appreciated.
Thanks in advance!
Zach