<?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 : Progress Column Sort</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Progress Column Sort]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:20:03 +0000</pubDate>
  <lastBuildDate>Sat, 12 May 2012 07:43:10 +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=19717</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[Progress Column Sort :   thanks. cstr.Format(_T(&amp;#034;%3d%%&amp;#034;),...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68245&amp;title=progress-column-sort#68245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 12 May 2012 at 7:43am<br /><br />thanks. cstr.Format(_T("%<font color="#ff0000">3</font>d%%"), progress, 0); fixed it.]]>
   </description>
   <pubDate>Sat, 12 May 2012 07:43:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68245&amp;title=progress-column-sort#68245</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort : Think you will find the column...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68241&amp;title=progress-column-sort#68241</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5104">DazMan</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 11 May 2012 at 11:57am<br /><br />Think you will find the column is being sorted alphabetically, there are two possible solutions <DIV>&nbsp;</DIV><DIV>Quick and dirty...</DIV><DIV>&nbsp;</DIV><DIV>Change the format specifier of&nbsp;the&nbsp;caption, to include preceding spaces, as per the&nbsp;following line:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; cstr.Format(_T("%<FONT color=#ff0000>3</FONT>d%%"), progress, 0);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Or the&nbsp;more elegant...</DIV><DIV>&nbsp;</DIV><DIV>Override the virutal Compare function definined in the base class of your&nbsp;CXTPReportRecordItemProgress class to sort the rows based on the m_nProgressPos member variable, causing the compare to be made numerically.&nbsp; Code would look something like this:</DIV><DIV>&nbsp;</DIV><DIV>int CXTPReportRecordItemProgress::Compare(CXTPReportColumn*, CXTPReportRecordItem* pItem)<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPReportRecordItemProgress* pItemProgress = DYNAMIC_DOWNCAST(CXTPReportRecordItemProgress, pItem);<BR>&nbsp;&nbsp;&nbsp; if (!pItemProgress)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;</DIV><DIV>&nbsp;&nbsp;&nbsp; if (m_nProgressPos == pItemProgress-&gt;m_nProgressPos)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;&nbsp;<BR>&nbsp;&nbsp;&nbsp; if (m_nProgressPos &gt; pItemProgress-&gt;m_nProgressPos)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;return -1;<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Fri, 11 May 2012 11:57:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68241&amp;title=progress-column-sort#68241</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort :   probably doing something silly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68239&amp;title=progress-column-sort#68239</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 11 May 2012 at 8:28am<br /><br />probably doing something silly but something weird is happening ... <div></div><div>if I use 9,8,7,6 then sort order is&nbsp;9,8 &amp; 7,6 + 8,9 &amp; 6,7 (which is ok)</div><div>&nbsp;</div><div><div>if I use 100,75,50,5 then sort order is 75,100 &amp; 50,5 + 100,75 &amp; 5,50</div></div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 11 May 2012 08:28:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68239&amp;title=progress-column-sort#68239</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort :     project uploaded ...uploads/6562/ReportTest.zip...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68215&amp;title=progress-column-sort#68215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 09 May 2012 at 12:39pm<br /><br /><div>project uploaded ...</div><a href="uploads/6562/ReportTest.zip" target="_blank"><div></div>uploads/6562/ReportTest.zip</a>]]>
   </description>
   <pubDate>Wed, 09 May 2012 12:39:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68215&amp;title=progress-column-sort#68215</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort :   ReportCustomDraw sample appears...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68214&amp;title=progress-column-sort#68214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 09 May 2012 at 12:09pm<br /><br />ReportCustomDraw sample appears to sort ok so I'm obvioulsy missing something?]]>
   </description>
   <pubDate>Wed, 09 May 2012 12:09:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68214&amp;title=progress-column-sort#68214</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort :   ok thanks, not using XAML...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68209&amp;title=progress-column-sort#68209</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 09 May 2012 at 5:06am<br /><br /><p>ok thanks, not using XAML (maybe this is the problem?) just using the CXTPReportRecordItemProgress class as defined in the ReportCustomDraw sample</p><p>CXTPReportRecordItemProgress* pRIP;<br>cstr.Format(_T("%d%%"), progress, 0);<br>pRIP = new CXTPReportRecordItemProgress(cstr, RGB(130, 192, 255), 12, 3, 1, 100, 1, progress);<br>AddItem(pRIP);</p>]]>
   </description>
   <pubDate>Wed, 09 May 2012 05:06:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68209&amp;title=progress-column-sort#68209</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort : What&amp;#039;s you XAML/Markup for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68203&amp;title=progress-column-sort#68203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 08 May 2012 at 11:37am<br /><br />What's you XAML/Markup for the progress bar? Can you make a small sample that I can experiment with?]]>
   </description>
   <pubDate>Tue, 08 May 2012 11:37:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68203&amp;title=progress-column-sort#68203</guid>
  </item> 
  <item>
   <title><![CDATA[Progress Column Sort :   added progress column in CXTPReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68195&amp;title=progress-column-sort#68195</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6562">dalai</a><br /><strong>Subject:</strong> 19717<br /><strong>Posted:</strong> 07 May 2012 at 5:09pm<br /><br />added progress column in CXTPReportControl but not sorted correctly?<div></div><div><img src="uploads/6562/progress.png" height="312" width="426" border="0" /></div>]]>
   </description>
   <pubDate>Mon, 07 May 2012 17:09:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19717&amp;PID=68195&amp;title=progress-column-sort#68195</guid>
  </item> 
 </channel>
</rss>