<?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 : Another Group Sorting bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Another Group Sorting bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 23:03:59 +0000</pubDate>
  <lastBuildDate>Thu, 22 Feb 2007 15:19:02 +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=6468</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[Another Group Sorting bug : Below are more details about sorting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6468&amp;PID=20675&amp;title=another-group-sorting-bug#20675</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6468<br /><strong>Posted:</strong> 22 February 2007 at 3:19pm<br /><br />Below are more details about sorting and grouping.<br>&nbsp;<br>To group rows Report control sorts them firstly.<br>Then it creates groups for such sorted rows.<br>Groups are created for rows with identical group keys. <br>It checks rows one by one from begin to end.<br>&nbsp;<br>To sort rows group keys are used firstly, then sort keys are used.<br>I mean if you select group by a "From" column and sort by a "Subject" column -- items will be compared by "From" column firstly and in case of identical ones they will be compared by "Subject" column.<br>&nbsp;<br>When comparing by GroupOrder -- GroupPriority is used if specified, otherwise - caption or value.<br>When comparing by SortOrder -- SortPriority is used if specified, otherwise - caption or value.<br><br>See the picture below:<br><img src="uploads/20070222_151846_SortKey.GIF" height="195" width="446" border="0"><br><br>&nbsp;<br>And regarding your sample. Records were sorted using SortPriority and grouped according their sorting.<br>&nbsp;<br>GroupPriority and SortPriority are used to separate sorting and groping keys.<br>&nbsp;<br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Thu, 22 Feb 2007 15:19:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6468&amp;PID=20675&amp;title=another-group-sorting-bug#20675</guid>
  </item> 
  <item>
   <title><![CDATA[Another Group Sorting bug : Hello!  Version: &amp;#034;Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6468&amp;PID=20590&amp;title=another-group-sorting-bug#20590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2695">vladjv</a><br /><strong>Subject:</strong> 6468<br /><strong>Posted:</strong> 20 February 2007 at 9:55am<br /><br />Hello!<br /><br />Version:<br />"Xtreme SuitePro ActiveX v10.4.1"<br />Codejock.ReportControl.ocx 10.4.1.0<br /><br /><br />Example project: <br />"Xtreme SuitePro ActiveX v10.4.1\samples\ReportControl\C#.NET\ReportSample\ReportSample.sln" <br /><br /><br /><br />I hase made folowing changes:<br /><br />1)<br /><br />file:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frmMain.cs" <br />function:&nbsp;&nbsp;&nbsp;&nbsp;<br />private void frmMain_Load(object sender, System.EventArgs e)<br />//adding to RC only 3 records<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AddRecord(Constants.IMPORTANCE_HIGH, false, false, "postmaster@mail.codejock.com", Subject, Sent, 7, true, 5,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Received, Created, Subject, EmptyString, Msg, EmptyString, EmptyString, EmptyString,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EmptyString, EmptyString, Msg);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Msg = "Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-linefeed sequence also breaks the line.";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject = "Hi Mary Jane";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AddRecord(Constants.IMPORTANCE_NORMAL, false, false, "Peter Parker", "RE: " + Subject, Sent, 14, false, 4.3,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Received, Created, Subject, EmptyString, Msg, EmptyString, EmptyString, EmptyString,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EmptyString, EmptyString, Msg);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject = "";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Msg = "If you have several conditions to be tested together, and you know that one is more likely to pass or fail than the others, you can use a feature called 'short circuit evaluation' to speed the execution of your script. When JScript evaluates a logical expression, it only evaluates as many sub-expressions as required to get a result.";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AddRecord(Constants.IMPORTANCE_NORMAL, true, false, "postmaster@mail.codejock.com", "RE:" + Subject, Sent, 24, false, 56,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Received, Created, Subject, EmptyString, Msg, EmptyString, EmptyString, EmptyString,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EmptyString, EmptyString, Msg);<br />2)<br /><br />file:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frmMain.cs<br />function:&nbsp;&nbsp;&nbsp;&nbsp;private void frmMain_Load(object sender, System.EventArgs e)<br /><br />for(int i=0; i&lt;wndReportControl.Records.Count; i++ )<br />wndReportControl.Records<em>&#091;ID.COLUMN_FROM&#093;.SortPriority=i;<br /><br />note: RC grouped by COLUMN_FROM.<br /><br />Based on this:  <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by sserge" alt="Originally posted by sserge" style="vertical-align: text-bottom;" /> <strong>sserge wrote:</strong><br /><br />Timo, It sorts groups by GroupPriority if exists, then by GroupCaption if exists, and after that it sorts rows by rows values. Could you please share your piece of code which doesn't work correctly? --WBR,Serge<br /></td></tr></table> <br /><br />there are should be 2 groups:<br /><br />"postmaster@mail.codejock.com" (2 records)<br />"Peter Parker" (1 record)<br /><br />But indeed report control shows 3 groups!<br /><br />"postmaster@mail.codejock.com" (1 record)<br />"Peter Parker" (1 record)<br />"postmaster@mail.codejock.com" (1 record)<br /><br />]]>
   </description>
   <pubDate>Tue, 20 Feb 2007 09:55:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6468&amp;PID=20590&amp;title=another-group-sorting-bug#20590</guid>
  </item> 
 </channel>
</rss>