<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Xtreme Report: how to collapse/Expand all</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Xtreme Report: how to collapse/Expand all]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:37:24 +0000</pubDate>
  <lastBuildDate>Mon, 23 Jan 2006 07:31:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=3544</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Xtreme Report: how to collapse/Expand all :  Have you looked at our samples?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10642&amp;title=xtreme-report-how-to-collapse-expand-all#10642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 23 January 2006 at 7:31am<br /><br />Have you looked at our samples?&nbsp; I.e. in the Report sample if you right-click on a group row you have the option to expand\collapse all rows.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub mnuCollapseAllGroups_Click()<br>&nbsp;&nbsp;&nbsp; Dim GroupRow As ReportRow<br>&nbsp;&nbsp;&nbsp; For Each GroupRow In wndReportControl.Rows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If GroupRow.GroupRow Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; GroupRow.Expanded = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; Next<br>End Sub<br><br>Private Sub mnuExpandAllGroups_Click()<br>&nbsp;&nbsp;&nbsp; Dim GroupRow As ReportRow<br>&nbsp;&nbsp;&nbsp; For Each GroupRow In wndReportControl.Rows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If GroupRow.GroupRow Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 'Expand Group Row<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; GroupRow.Expanded = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; Next<br>End Sub<br></pre></td></tr></table><br><br>This code works fine in our sample.&nbsp; If you want to keep grouping, you will have to remember the expand\collapse state then after a sort using the SortOrderChanged event you must restore the expand state.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub wndReportControl_SortOrderChanged()<br>&nbsp;&nbsp;&nbsp; If bCollapsed Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mnuCollapseAllGroups_Click<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Mon, 23 Jan 2006 07:31:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10642&amp;title=xtreme-report-how-to-collapse-expand-all#10642</guid>
  </item> 
  <item>
   <title><![CDATA[Xtreme Report: how to collapse/Expand all : Davide,If you have different buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10633&amp;title=xtreme-report-how-to-collapse-expand-all#10633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 22 January 2006 at 5:09am<br /><br />Davide,<br><br>If you have different buttons for expand / collapse then just try to set Expanded to True.<br><table width="99%"><tr><td><pre class="BBcode"><br>report_row.Expanded = True<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sun, 22 Jan 2006 05:09:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10633&amp;title=xtreme-report-how-to-collapse-expand-all#10633</guid>
  </item> 
  <item>
   <title><![CDATA[Xtreme Report: how to collapse/Expand all : Hi seerge, the code lines in my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10627&amp;title=xtreme-report-how-to-collapse-expand-all#10627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1736">Davide</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 21 January 2006 at 4:50pm<br /><br /><P>Hi seerge, the code lines in my post are those I use to collapse my groups rows. Naturally, the ones I use to expand my rows are the same you have posted. The problem is that this does not work. </P><P>What I do:</P><P>1) Read a recordset from a database</P><P>2) Add records to the report</P><P>3) Call the populate method ( so the rows are generated)</P><P>4) Activate the group box view</P><P>5) Drag'n'Drop a Column Header in the group box</P><P>All the rows are now grouped and expanded</P><P>6) Press a button that fires up the Collapse code (the code in my post)</P><P>It works....</P><P>7) Press a button that fires up the Expand code (the same sserge posted)</P><P>It doesn't work.... </P><P>If I click a column header to sort rows by that column all the group returns expanded, but my button doesn't work anymore. Executing code line by line I have seen that the execution skip to 'End If' (with reference to the code previously posted) exactly as the report was zero rows populated.</P><P>Some Hint?</P><P>Davide</P>]]>
   </description>
   <pubDate>Sat, 21 Jan 2006 16:50:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10627&amp;title=xtreme-report-how-to-collapse-expand-all#10627</guid>
  </item> 
  <item>
   <title><![CDATA[Xtreme Report: how to collapse/Expand all : Hi Davide,When you set Expanded...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10626&amp;title=xtreme-report-how-to-collapse-expand-all#10626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 21 January 2006 at 2:58pm<br /><br />Hi Davide,<br><br>When you set Expanded property to False, you force rows to be collapsed. Following piece of code reverts Expanded state:<br><table width="99%"><tr><td><pre class="BBcode"><br>Dim report_row As ReportRow<br>If AxReport.ShowGroupBox Then<br>&nbsp;&nbsp;&nbsp; For Each report_row In AxReport.Rows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If report_row.GroupRow Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; report_row.Expanded = Not report_row.Expanded<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; Next report_row<br>End If<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 21 Jan 2006 14:58:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10626&amp;title=xtreme-report-how-to-collapse-expand-all#10626</guid>
  </item> 
  <item>
   <title><![CDATA[Xtreme Report: how to collapse/Expand all :  Hi All, I am trying to collapse/Expand...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10624&amp;title=xtreme-report-how-to-collapse-expand-all#10624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1736">Davide</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 21 January 2006 at 11:54am<br /><br />Hi All,<br>&nbsp;&nbsp;&nbsp; I am trying to collapse/Expand all group when a grouping view is activated. I am trying to do it so<br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If AxReport.ShowGroupBox Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each report_row In AxReport.Rows<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If report_row.GroupRow Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; report_row.Expanded = False<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next report_row<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br><br>but it does not work. Better, it works only the first time I collapse all the grouped rows.<br><br>Thanks<br>Davide<br>]]>
   </description>
   <pubDate>Sat, 21 Jan 2006 11:54:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3544&amp;PID=10624&amp;title=xtreme-report-how-to-collapse-expand-all#10624</guid>
  </item> 
 </channel>
</rss>