Good Day All

After Binding my Grid with 3 Columns , i found out that it Duplicates the Columns Twice. like this

Activity || Staff Member || Cycles  ||  Activity || Staff Member || Cycles || Activity || Staff Member || Cycles 

===============================================================================

C[1]       || DR  Vuyiswa      ||   Year ||               ||                          ||               ||             ||                          ||

All other Duplicated Columns have no Values

and the Grid is defined like this

<igtbl:UltraWebGrid ID="Gridstaff" runat="server" Width="344px" Height="111px" EnableAppStyling="False"
                                                                StyleSetName="RubberBlack" Autopostback="true" OnSelectedCellsChange="Gridstaff_SelectedCellsChange" OnSelectedColumnsChange="Gridstaff_SelectedColumnsChange" OnSelectedRowsChange="Gridstaff_SelectedRowsChange">
                                                                <Bands>
                                                                    <igtbl:UltraGridBand>
                                                                        <AddNewRow View="NotSet" Visible="NotSet">
                                                                        </AddNewRow>
                                                                    </igtbl:UltraGridBand>
                                                                </Bands>
                                                                <DisplayLayout AllowSortingDefault="OnClient" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti"
                                                                    Name="ctl172xGridstaff" RowHeightDefault="5px"
                                                                    SelectTypeRowDefault="Extended" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True"
                                                                    TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy" ColWidthDefault="180px" EnableProgressIndicator="False" UseFixedHeaders="True">
                                                                    <FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid"
                                                                        BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height="111px"
                                                                        Width="344px">
                                                                    </FrameStyle>
                                                                    <Pager MinimumPagesForDisplay="2">
                                                                        <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                                                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                                        </PagerStyle>
                                                                    </Pager>
                                                                    <EditCellStyleDefault BorderStyle="Solid" BorderWidth="0px">
                                                                    </EditCellStyleDefault>
                                                                    <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                                                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                                    </FooterStyleDefault>
                                                                    <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Left">
                                                                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                                    </HeaderStyleDefault>
                                                                    <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                                                        Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height="100%" HorizontalAlign="Left" TextOverflow="Ellipsis" Wrap="True">
                                                                        <BorderDetails ColorLeft="Window" ColorTop="Window" />
                                                                    </RowStyleDefault>
                                                                    <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                                                                    </GroupByRowStyleDefault>
                                                                    <GroupByBox Hidden="True">
                                                                        <BoxStyle BackColor="ActiveBorder" BorderColor="Window">
                                                                        </BoxStyle>
                                                                    </GroupByBox>
                                                                    <AddNewBox>
                                                                        <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px">
                                                                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                                        </BoxStyle>
                                                                    </AddNewBox>
                                                                    <ActivationObject BorderColor="" BorderWidth="">
                                                                    </ActivationObject>
                                                                    <FilterOptionsDefault>
                                                                        <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                                                            CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                                                            Font-Size="11px" Height="300px" Width="200px">
                                                                            <Padding Left="2px" />
                                                                        </FilterDropDownStyle>
                                                                        <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                                                        </FilterHighlightRowStyle>
                                                                        <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
                                                                            BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                                                            Font-Size="11px">
                                                                            <Padding Left="2px" />
                                                                        </FilterOperandDropDownStyle>
                                                                    </FilterOptionsDefault>
                                                                    <SelectedRowStyleDefault BackColor="Gray">
                                                                    </SelectedRowStyleDefault>
                                                                    <FixedHeaderStyleDefault Height="100%">
                                                                        <Padding Bottom="2px" />
                                                                    </FixedHeaderStyleDefault>
                                                                </DisplayLayout>
                                                            </igtbl:UltraWebGrid>

Thank you

Set AutoGenerateColumns property to false.

Good Day

Thanks for your Reply. I have Trapped the Postback before i bind the GRid, without the Code the Grid got Binded mulitple times. i resolved it

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.