The Columns of the Grid Duplicates themselves

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 155
Reputation: vuyiswamb is an unknown quantity at this point 
Solved Threads: 5
vuyiswamb's Avatar
vuyiswamb vuyiswamb is offline Offline
Junior Poster

The Columns of the Grid Duplicates themselves

 
0
  #1
Jul 4th, 2009
Good Day All

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

  1.  
  2. Activity || Staff Member || Cycles || Activity || Staff Member || Cycles || Activity || Staff Member || Cycles
  3.  
  4. ===============================================================================
  5.  
  6. C[1] || DR Vuyiswa || Year || || || || || ||

All other Duplicated Columns have no Values

and the Grid is defined like this

  1.  
  2. <igtbl:UltraWebGrid ID="Gridstaff" runat="server" Width="344px" Height="111px" EnableAppStyling="False"
  3. StyleSetName="RubberBlack" Autopostback="true" OnSelectedCellsChange="Gridstaff_SelectedCellsChange" OnSelectedColumnsChange="Gridstaff_SelectedColumnsChange" OnSelectedRowsChange="Gridstaff_SelectedRowsChange">
  4. <Bands>
  5. <igtbl:UltraGridBand>
  6. <AddNewRow View="NotSet" Visible="NotSet">
  7. </AddNewRow>
  8. </igtbl:UltraGridBand>
  9. </Bands>
  10. <DisplayLayout AllowSortingDefault="OnClient" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti"
  11. Name="ctl172xGridstaff" RowHeightDefault="5px"
  12. SelectTypeRowDefault="Extended" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True"
  13. TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy" ColWidthDefault="180px" EnableProgressIndicator="False" UseFixedHeaders="True">
  14. <FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid"
  15. BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height="111px"
  16. Width="344px">
  17. </FrameStyle>
  18. <Pager MinimumPagesForDisplay="2">
  19. <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
  20. <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
  21. </PagerStyle>
  22. </Pager>
  23. <EditCellStyleDefault BorderStyle="Solid" BorderWidth="0px">
  24. </EditCellStyleDefault>
  25. <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
  26. <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
  27. </FooterStyleDefault>
  28. <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Left">
  29. <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
  30. </HeaderStyleDefault>
  31. <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
  32. Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height="100%" HorizontalAlign="Left" TextOverflow="Ellipsis" Wrap="True">
  33. <BorderDetails ColorLeft="Window" ColorTop="Window" />
  34. </RowStyleDefault>
  35. <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
  36. </GroupByRowStyleDefault>
  37. <GroupByBox Hidden="True">
  38. <BoxStyle BackColor="ActiveBorder" BorderColor="Window">
  39. </BoxStyle>
  40. </GroupByBox>
  41. <AddNewBox>
  42. <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px">
  43. <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
  44. </BoxStyle>
  45. </AddNewBox>
  46. <ActivationObject BorderColor="" BorderWidth="">
  47. </ActivationObject>
  48. <FilterOptionsDefault>
  49. <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
  50. CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
  51. Font-Size="11px" Height="300px" Width="200px">
  52. <Padding Left="2px" />
  53. </FilterDropDownStyle>
  54. <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
  55. </FilterHighlightRowStyle>
  56. <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
  57. BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
  58. Font-Size="11px">
  59. <Padding Left="2px" />
  60. </FilterOperandDropDownStyle>
  61. </FilterOptionsDefault>
  62. <SelectedRowStyleDefault BackColor="Gray">
  63. </SelectedRowStyleDefault>
  64. <FixedHeaderStyleDefault Height="100%">
  65. <Padding Bottom="2px" />
  66. </FixedHeaderStyleDefault>
  67. </DisplayLayout>
  68. </igtbl:UltraWebGrid>

Thank you
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 426
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 81
Ramesh S Ramesh S is offline Offline
Posting Pro in Training

Re: The Columns of the Grid Duplicates themselves

 
0
  #2
Jul 4th, 2009
Set AutoGenerateColumns property to false.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 155
Reputation: vuyiswamb is an unknown quantity at this point 
Solved Threads: 5
vuyiswamb's Avatar
vuyiswamb vuyiswamb is offline Offline
Junior Poster

Re: The Columns of the Grid Duplicates themselves

 
0
  #3
Jul 7th, 2009
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
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC