<?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 : Group By Column ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Group By Column ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:27:56 +0000</pubDate>
  <lastBuildDate>Fri, 03 Feb 2006 12:15:41 +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=3596</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[Group By Column ? : That does it!! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10800&amp;title=group-by-column#10800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1670">John31</a><br /><strong>Subject:</strong> 3596<br /><strong>Posted:</strong> 03 February 2006 at 12:15pm<br /><br />That does it!!]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 12:15:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10800&amp;title=group-by-column#10800</guid>
  </item> 
  <item>
   <title><![CDATA[Group By Column ? :  Why not something like this?&amp;#039;For...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10799&amp;title=group-by-column#10799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 3596<br /><strong>Posted:</strong> 03 February 2006 at 12:14pm<br /><br />Why not something like this?<br><br>'For this I assume Control.Parameter is the ID of the column that was hidden<br><br>Case ID_REPORTCONTROL_GROUP_BY_COLUMN<br>&nbsp;&nbsp;&nbsp; If Control.Checked Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;  wndReportControl.GroupsOrder.RemoveAt(wndReportControl.Group sOrder.IndexOf(wndReportControl.Columns.Find(Control.Paramet er)))<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RC1.GroupsOrder.Add RC1.Columns.Find(Control.Parameter)<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; m_lGroupCount = RC1.GroupsOrder.Count<br>&nbsp;&nbsp;&nbsp; RC1.Populate<br>&nbsp;&nbsp;&nbsp; UpdateRowCounts<br>]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 12:14:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10799&amp;title=group-by-column#10799</guid>
  </item> 
  <item>
   <title><![CDATA[Group By Column ? : Thanks Mario that worked for what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10798&amp;title=group-by-column#10798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1670">John31</a><br /><strong>Subject:</strong> 3596<br /><strong>Posted:</strong> 03 February 2006 at 12:02pm<br /><br /><P>Thanks Mario that worked for what I needed.&nbsp; I will have to live with the other behavior for now as I don't think it will be&nbsp;a big deal.</P><P>It would be nice to have an option GroupsOrder.Delete (ReportColumn)&nbsp; in addition to the DeleteAll.&nbsp; It would make the follow code easier.&nbsp; Keep up the great work!!!!</P><P>Case ID_REPORTCONTROL_GROUP_BY_COLUMN<BR>&nbsp;&nbsp;&nbsp; If Control.Checked Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim cCol As New Collection<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim oCol As ReportColumn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To RC1.GroupsOrder.Count - 1<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; If RC1.GroupsOrder(i).Caption &lt;&gt; RC1.Columns.Find(Control.Parameter).Caption Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cCol.Add RC1.GroupsOrder(i)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' now remove all columns<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RC1.GroupsOrder.DeleteAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' put the other ones back in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To cCol.Count<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Set oCol = cCol(i)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; RC1.GroupsOrder.Add oCol<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RC1.GroupsOrder.Add RC1.Columns.Find(Control.Parameter)<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; m_lGroupCount = RC1.GroupsOrder.Count<BR>&nbsp;&nbsp;&nbsp; RC1.Populate<BR>&nbsp;&nbsp;&nbsp; UpdateRowCounts<BR></P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 12:02:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10798&amp;title=group-by-column#10798</guid>
  </item> 
  <item>
   <title><![CDATA[Group By Column ? :  Can&amp;#039;t think of a good way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10795&amp;title=group-by-column#10795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 3596<br /><strong>Posted:</strong> 03 February 2006 at 11:38am<br /><br />Can't think of a good way as this is the way it is supposed to behave.&nbsp; Maybe something like:<br><br>'Global<br>Dim currentGroupCount As Integer<br><br>'In Form_Load<br>currentGroupCount = wndReportControl.GroupsOrder.Count<br>&nbsp;&nbsp;&nbsp; <br><br>Private Sub wndReportControl_ColumnOrderChanged()<br>&nbsp;&nbsp;&nbsp; If (wndReportControl.GroupsOrder.Count &gt; currentGroupCount) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  wndReportControl.GroupsOrder.Column(wndReportControl.GroupsO rder.Count - 1).Visible = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wndReportControl.Redraw<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; currentGroupCount = currentGroupCount + 1<br>&nbsp;&nbsp;&nbsp; ElseIf (wndReportControl.GroupsOrder.Count &lt; currentGroupCount) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; currentGroupCount = currentGroupCount - 1<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 11:38:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10795&amp;title=group-by-column#10795</guid>
  </item> 
  <item>
   <title><![CDATA[Group By Column ? : When adding a column to the groups...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10794&amp;title=group-by-column#10794</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1670">John31</a><br /><strong>Subject:</strong> 3596<br /><strong>Posted:</strong> 03 February 2006 at 10:55am<br /><br /><P>When adding a column to the groups order using GroupsOrder.Add the column remains visible in the ReportControl.&nbsp; However, if you ShowGroupBox and then drag a column to the GroupBox it removes it from the ReportControl.&nbsp; </P><P>Is there a way to make the drag opertion to GroupBox behave the same as it does when you do the GroupsOrder.Add?</P><P>If not, can I code arround it to put the column back in the ReportControl once it has been added to the GroupBox?&nbsp;</P><P>Is there an event that fires when the GroupBy has changed?</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 10:55:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3596&amp;PID=10794&amp;title=group-by-column#10794</guid>
  </item> 
 </channel>
</rss>