When there are multiple column headers with the same name, the radgrid keeps adding a number to the end of the header. For example if I have repeating column headers that are aa, bb, cc, aa, bb, cc, aa, bb, cc the radgrid displayes them as aa, bb, cc, aa1, bb1, cc1, aa2, bb2, cc2 and so on. Is there a way to turn this off.
This is my code:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource3" Skin="Simple"
CellSpacing="0" GridLines="None" Font-Size="8pt" CellPadding="0" Wrap="False">
<MasterTableView DataSourceID="SqlDataSource3" CommandItemDisplay="Top" Font-Size="8" CellPadding="0" Wrap="False">
<ItemStyle Wrap="False" />
<CommandItemTemplate>
<%=gridHeader%>
</CommandItemTemplate>
<CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
ShowExportToCsvButton="true" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<HeaderStyle Font-Size="8pt" Font-Underline="False" Wrap="False" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
</HeaderContextMenu>
</telerik:RadGrid>
Thanks in advance.
This is my code:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource3" Skin="Simple"
CellSpacing="0" GridLines="None" Font-Size="8pt" CellPadding="0" Wrap="False">
<MasterTableView DataSourceID="SqlDataSource3" CommandItemDisplay="Top" Font-Size="8" CellPadding="0" Wrap="False">
<ItemStyle Wrap="False" />
<CommandItemTemplate>
<%=gridHeader%>
</CommandItemTemplate>
<CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
ShowExportToCsvButton="true" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<HeaderStyle Font-Size="8pt" Font-Underline="False" Wrap="False" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
</HeaderContextMenu>
</telerik:RadGrid>
Thanks in advance.