<?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 : ReportC&#111;ntrol tree sorting</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : ReportC&#111;ntrol tree sorting]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 09:27:43 +0000</pubDate>
  <lastBuildDate>Thu, 05 May 2005 02:09:52 +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=2185</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[ReportC&#111;ntrol tree sorting : I have changed the source code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2185&amp;PID=6462&amp;title=reportcontrol-tree-sorting#6462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=860">haiku</a><br /><strong>Subject:</strong> 2185<br /><strong>Posted:</strong> 05 May 2005 at 2:09am<br /><br /><P>I have changed the source code (this works fine):</P><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPReportRows::Sort(</FONT><FONT color=#0000ff size=2>bool</FONT><FONT size=2> bSortChildren) </FONT></P><P><FONT size=2>{ </P><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; if</FONT><FONT size=2> (bSortChildren)</P><P>&nbsp;&nbsp;&nbsp; {</P><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i=0; i&lt;GetCount(); ++i)</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetAt(i)-&gt;GetChilds()-&gt;Sort(bSortChildren);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp;&nbsp; }</P><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>_cdecl</FONT><FONT size=2> *GENERICCOMPAREFUNC)(</FONT><FONT color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> *,</FONT><FONT color=#0000ff size=2>const</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2></FONT></P><P><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void</FONT><FONT size=2>*);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qsort(m_arrRows.GetData(), (size_t)m_arrRows.GetSize(), </FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>&nbsp;&nbsp;&nbsp; (CXTPReportRow*), (GENERICCOMPAREFUNC)CompareRows);</P><P>}</P></FONT><P>&nbsp;</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by haiku</span>]]>
   </description>
   <pubDate>Thu, 05 May 2005 02:09:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2185&amp;PID=6462&amp;title=reportcontrol-tree-sorting#6462</guid>
  </item> 
  <item>
   <title><![CDATA[ReportC&#111;ntrol tree sorting : How to sort tree in ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2185&amp;PID=6460&amp;title=reportcontrol-tree-sorting#6460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=860">haiku</a><br /><strong>Subject:</strong> 2185<br /><strong>Posted:</strong> 05 May 2005 at 1:59am<br /><br /><P>How to sort tree in ReportControl to sort subtrees also ? Has anyone know some fast way how to do that ? Now you can sort only the top most leaves in the tree.</P><P>Thank you for help, Haiku.</P>]]>
   </description>
   <pubDate>Thu, 05 May 2005 01:59:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2185&amp;PID=6460&amp;title=reportcontrol-tree-sorting#6460</guid>
  </item> 
 </channel>
</rss>