<?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 : Grouping/Sorting</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Grouping/Sorting]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 09:45:38 +0000</pubDate>
  <lastBuildDate>Fri, 24 Apr 2009 15:40:46 +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=14070</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[Grouping/Sorting : Hi,  If you want to group on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48345&amp;title=grouping-sorting#48345</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 24 April 2009 at 3:40pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>If you want to group on items with (for example) value 10.00 to 10.99 you could set <strong>GroupCaption</strong>&nbsp;for these items: "All values between 10 and 11" and RC will group these items because they have same GroupCaption.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Just replace existing code with BOLD code</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#666666>For i = 1 To 1000<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set rec = wndReportControl.Records.Add()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set recItem = rec.AddItem(i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><FONT color=#000000>recItem.GroupPriority = i Mod 125&nbsp;</FONT></strong></FONT></DIV><DIV><FONT color=#666666><strong><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recItem.SortPriority = i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recItem.GroupCaption = i Mod 125<BR></FONT></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT color=#666666>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...................................</FONT></DIV><DIV><FONT color=#666666>Next i</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Now sorting will be on grouped items, and sort ascending &amp; descending&nbsp;on <strong>childs</strong> of that grouprow works with values as should <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>Well sometimes it will&nbsp;come in handy when using these properties, especially with&nbsp;numbers. I remember the MS Listview where we had to add code to sort on&nbsp;numbers and RC has build-in properties to handle these kind of&nbsp;issues. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 24 Apr 2009 15:40:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48345&amp;title=grouping-sorting#48345</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting : Aaron Thanks for the nice example!  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48321&amp;title=grouping-sorting#48321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5135">keepITcool</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 24 April 2009 at 7:11am<br /><br /><P>Aaron</P><DIV>Thanks for the nice example!</DIV><DIV>&nbsp;</DIV><DIV>I had failed to spot the Grouppriority, and&nbsp;I still fail to see the SetMask method&nbsp;I have in&nbsp;SuiteControls and PropertyGrid. </DIV><DIV>GroupPriority&nbsp;doesnot&nbsp;solve my problem, but it helps. Suppose&nbsp;I want the items grouped in 8 groups of 125 items each. Modify your example to&nbsp;1000 records, and set the grouppriority to (i - 1) mod 125 + 1</DIV><DIV>&nbsp;</DIV><DIV>Group priority ONLY influences the SORTING&nbsp;of the groups, NOT the&nbsp;grouping itself, and not the Sorting of the items. </DIV><DIV>&nbsp;</DIV><DIV>My reallife example is more complicated but solved. Thanks for the explanation.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 24 Apr 2009 07:11:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48321&amp;title=grouping-sorting#48321</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting : Hi,   I don&amp;#039;t know if it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48257&amp;title=grouping-sorting#48257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 23 April 2009 at 12:54am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I don't know if it will solve your problem...</DIV><DIV>I'm not sure what you really want... I created small demo using sort &amp; groupPriority and you will see difference.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20090423_005543_TestSorting.zip" target="_blank">uploads/20090423_005543_TestSorting.zip</A></DIV><DIV>&nbsp;</DIV><DIV>You could change code in sample so I can see what you are trying to accomplish <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 23 Apr 2009 00:54:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48257&amp;title=grouping-sorting#48257</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting : Documentation says it&amp;#039;s an...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48206&amp;title=grouping-sorting#48206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5135">keepITcool</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 21 April 2009 at 2:46pm<br /><br /><P>Documentation says it's an integer, but Typelib shows it's a long. Thanks.</P><DIV>Doesn't solve my Group problem though, does it?</DIV>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 14:46:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48206&amp;title=grouping-sorting#48206</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting : Hi,  I just did test with 3...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48201&amp;title=grouping-sorting#48201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 21 April 2009 at 11:28am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I just did test with 3 million records and I'm able to assign SortPriority value with same number as Record.Index and it does still sort OK.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 11:28:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48201&amp;title=grouping-sorting#48201</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting :  GroupValue... it would follow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48181&amp;title=grouping-sorting#48181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5135">keepITcool</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 21 April 2009 at 4:19am<br /><br /><DIV>&nbsp;</DIV><DIV>GroupValue...&nbsp; it would follow the construct of the RowItem Value,Mask,Caption. Suppose I have 2 rowitems</DIV><DIV>Value: 9,00026 / &nbsp;Caption: Z9 / Groupcaption: "000009"</DIV><DIV>Value: 123456,00256 /&nbsp;Caption: IV123456 / GroupCaption:&nbsp;"123456"</DIV><DIV>I must set the groupcaptions and rework them in the beforedraw event. Rather a waste of resources&nbsp; I sometimes need&nbsp;300.000+ records, so I have to measure performance and memory.&nbsp;6 char string=16bytes. 1 long=4 bytes....</DIV><DIV>&nbsp;</DIV><DIV><DIV>SortPriority is an Integer. Can't use it&nbsp;as it will cause&nbsp;overflows.</DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 04:19:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48181&amp;title=grouping-sorting#48181</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting : Hi,   REQUEST:  For the ReportGroupRow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48164&amp;title=grouping-sorting#48164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 20 April 2009 at 2:26pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><DIV>REQUEST: </DIV><DIV>For the ReportGroupRow class:</DIV><DIV>Add a GroupValue Property. (Probably with GroupFormat?)</DIV><DIV>Remove the&nbsp;GroupRow boolean property: Can this be false for a grouprow?, or is it just the Interface/Implement?</DIV><DIV>&nbsp;</DIV><DIV><strong>Answer: What would GroupValue actually do for you?</strong></DIV><DIV>&nbsp;</DIV><DIV>For sorting : it would be nice to have&nbsp;an "intuitivesort" flag for strings where characters are followed by numbers.</DIV><DIV>(or is this implemented for item sorting but not for group sorting?)</DIV><DIV>&nbsp;</DIV><DIV><DIV><strong>Answer: If you would&nbsp;get the numbers from the string you can use these numbers to set </strong><strong><FONT color=#000000>SortPriority </FONT></strong></DIV><DIV><strong><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Setting SortPriority will sort on the value you assigned, and not on Caption</FONT></strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>&nbsp;</DIV></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 20 Apr 2009 14:26:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48164&amp;title=grouping-sorting#48164</guid>
  </item> 
  <item>
   <title><![CDATA[Grouping/Sorting : Could there be a Sticky or Tutorial...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48101&amp;title=grouping-sorting#48101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5135">keepITcool</a><br /><strong>Subject:</strong> 14070<br /><strong>Posted:</strong> 18 April 2009 at 5:58pm<br /><br />Could there be a Sticky or Tutorial re grouping &amp; sorting?<DIV>&nbsp;</DIV><DIV>If I missed in the helpfile than please tell me. I spent way to much time&nbsp;before i understood the finer&nbsp;details. Is there a doc/tutorial/sticky&nbsp;that explains the&nbsp;details and intracacies of&nbsp;Value/Format/Caption/SortPriority/GroupCaption?</DIV><DIV>&nbsp;</DIV><DIV>I have a column with Excel&nbsp;cell addresses, e.g. L8 and AX10.&nbsp; Depending on variable&nbsp;I want&nbsp;to sort by column or row. </DIV><DIV>Sorting on the raw address gives unacceptable results: At least the caption&nbsp;must be left padded with spaces&nbsp;else AXnnn will sort before Lnnn</DIV><DIV>&nbsp;</DIV><DIV>After my "discovery phase" &nbsp;I found it's really quite simple:</DIV><DIV>I set the&nbsp;Value&nbsp;of the Item&nbsp;as&nbsp;a&nbsp;Double:&nbsp;RowNumber+ColNumber/100000# (or swapped depending on my variable)</DIV><DIV>I set the&nbsp;Caption of the Item (as string) to the cell's Address</DIV><DIV>I set the GroupCaption as "Column:" &amp; padding &amp; ColLetter (or&nbsp;"Row:" &amp; padding &amp; RowNumber depending on variable)</DIV><DIV>&nbsp;</DIV><DIV>I need the padding for the group as the only sort property is the caption.</DIV><DIV>&nbsp;</DIV><DIV>REQUEST: </DIV><DIV>For the ReportGroupRow class:</DIV><DIV>Add a GroupValue Property. (Probably with GroupFormat?)</DIV><DIV>Remove the&nbsp;GroupRow boolean property: Can this be false for a grouprow?, or is it just the Interface/Implement?</DIV><DIV>&nbsp;</DIV><DIV>For sorting : it would be nice to have&nbsp;an "intuitivesort" flag for strings where characters are followed by numbers.</DIV><DIV>(or is this implemented for item sorting but not for group sorting?)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>It's been a struggle. Did I&nbsp;miss the obvious explanation in the help file or on the website? I'm normally the first to scream RTFM.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 18 Apr 2009 17:58:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14070&amp;PID=48101&amp;title=grouping-sorting#48101</guid>
  </item> 
 </channel>
</rss>