Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4110
Sorting adds more columns
posted

I have an Ultrawebgrid as defined below, that is in an UpdatePanel. I have AutoGenerateColumns set to true. My problem is this: when I click on a column header to sort, it adds the columns in twice, the data filled columns and empty columns, so I have duplicated columns. Ok, I turn off AutoGenerateColumns and no data will fill the table. I am databinding an SQL Dataset. There is no editing, so the grid is databound each time the page loads. How can I eliminate the "extra" columns.

<igtbl:UltraWebGrid ID="igCARAll" runat="server" DisplayLayout-AutoGenerateColumns="true"
EnableAppStyling="True" StyleSetName="Office2007Blue" StyleSetPath="~/ig_res/" DisplayLayout-CellPaddingDefault="5"
DisplayLayout-Pager-AllowPaging="true" DisplayLayout-Pager-PageSize="100" DisplayLayout-Pager-PagerAppearance="Both"
Height="350px" Width="100%" DisplayLayout-AllowSortingDefault="Yes"  >
<Bands>
<igtbl:UltraGridBand>
<AddNewRow View="NotSet" Visible="NotSet">
</AddNewRow>
</igtbl:UltraGridBand>
</Bands>
<DisplayLayout BorderCollapseDefault="Separate" CellPaddingDefault="5" Name="igCARAll"
RowHeightDefault="20px" Version="4.00" HeaderClickActionDefault="SortSingle">
<FrameStyle>
</FrameStyle>
<Pager Alignment="Left" AllowPaging="True" PagerAppearance="Both" PageSize="100"
QuickPages="3" StyleMode="Numeric" MinimumPagesForDisplay="2">
<PagerStyle HorizontalAlign="Left" VerticalAlign="Middle" />
<ComboStyle HorizontalAlign="Left" VerticalAlign="Middle">
</ComboStyle>
</Pager>                                                       
<ActivationObject BorderColor="" BorderWidth="">                                                               
</ActivationObject>
</DisplayLayout>
</igtbl:UltraWebGrid>