<?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 : Sort the column to numeric values​​?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Sort the column to numeric values​​?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 23:36:10 +0000</pubDate>
  <lastBuildDate>Thu, 14 Jul 2011 09:52:51 +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=18655</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[Sort the column to numeric values​​? :    Aaron wrote:...Private Sub...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65271&amp;title=sort-the-column-to-numeric-values#65271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5633">g.novi</a><br /><strong>Subject:</strong> 18655<br /><strong>Posted:</strong> 14 July 2011 at 9:52am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><p>...</p><p>Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)</p><div>&nbsp;&nbsp;&nbsp; Row.Record.Item(0).Caption = Format(Row.Record.Item(0).Value, "##0.#0")</div><p>End Sub</p><p></td></tr></table></p><p><br></p><p><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">Very well !!!</font></span></p><p><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">Thank you</font></span></p>]]>
   </description>
   <pubDate>Thu, 14 Jul 2011 09:52:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65271&amp;title=sort-the-column-to-numeric-values#65271</guid>
  </item> 
  <item>
   <title><![CDATA[Sort the column to numeric values​​? :   g.novi wrote: If I convert...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65255&amp;title=sort-the-column-to-numeric-values#65255</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18655<br /><strong>Posted:</strong> 13 July 2011 at 4:41pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by g.novi" alt="Originally posted by g.novi" style="vertical-align: text-bottom;" /> <strong>g.novi wrote:</strong><br /><br /></P><DIV>&#091;...&#093;<BR>If I convert text into Double type it works, but the number will not be formatted!<BR>How can I do!?</DIV><DIV>&#091;...&#093;<BR></td></tr></table> </DIV><P>OK, you solved that part...</P><P>You can't use .Format property because it will be "converted" to a string and it doesn't sort properly anymore. Best way is to use custom format in BeforeDrawRow event something like this:</P><P>in FormLoad (or wherever you initialize RC) set:<BR>wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow</P><DIV>&nbsp;</DIV><DIV>Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; Row.Record.Item(0).Caption = Format(Row.Record.Item(0).Value, "##0.#0")</DIV><P>End Sub<BR></P><DIV></DIV><DIV></DIV>Hope this helps <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /> <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 13 Jul 2011 16:41:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65255&amp;title=sort-the-column-to-numeric-values#65255</guid>
  </item> 
  <item>
   <title><![CDATA[Sort the column to numeric values​​? :    Aaron wrote:... If you are...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65252&amp;title=sort-the-column-to-numeric-values#65252</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5633">g.novi</a><br /><strong>Subject:</strong> 18655<br /><strong>Posted:</strong> 13 July 2011 at 10:52am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><div>...<br><div>If you are able to convert text to type you need it will work, if you can't just&nbsp;set .SortPriority&nbsp;when adding items to RC &nbsp;</div><div></td></tr></table></div></div><div><br></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">If I convert text into Double type it works, <span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">but the</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">number will not be</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">formatted!</span></span></font></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">How</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">can I do!?</span></font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><br></span></font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">Thank's</span></font></span></div>]]>
   </description>
   <pubDate>Wed, 13 Jul 2011 10:52:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65252&amp;title=sort-the-column-to-numeric-values#65252</guid>
  </item> 
  <item>
   <title><![CDATA[Sort the column to numeric values​​? :    Aaron wrote:Hi, Did add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65250&amp;title=sort-the-column-to-numeric-values#65250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5633">g.novi</a><br /><strong>Subject:</strong> 18655<br /><strong>Posted:</strong> 13 July 2011 at 10:21am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br />Hi,<div>Did add numeric values as text or as&nbsp;Integer, Long, Double? RC supports type sorting. If you added it as text it sorts like MS explorer does,&nbsp;&nbsp; 1,10,11,2,3,4,5&nbsp;etc, etc</div><div>&nbsp;</div><div>If you are able to convert text to type you need it will work, if you can't just&nbsp;set .SortPriority&nbsp;when adding items to RC &nbsp;</div></td></tr></table><div><br></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="3">Hi,</font></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="3"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">maybe because I</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">insert</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">formatted numbers? (Ex: 12 in 12,00).</span></font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="3"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">How</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">do I get</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">formatted numbers</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">and</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">correct sort</span><span title="Fai clic per visualizzare le traduzi&#111;ni alternative" ="">?</span></font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="3"><span title="Fai clic per visualizzare le traduzi&#111;ni alternative" ="">Thank You.</span></font></span></div><div><span ="Apple-style-span" style="font-family: arial, sans-serif; font-size: 24px; line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><br></span></span></div>]]>
   </description>
   <pubDate>Wed, 13 Jul 2011 10:21:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65250&amp;title=sort-the-column-to-numeric-values#65250</guid>
  </item> 
  <item>
   <title><![CDATA[Sort the column to numeric values​​? : Hi,  Did add numeric values...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65247&amp;title=sort-the-column-to-numeric-values#65247</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18655<br /><strong>Posted:</strong> 13 July 2011 at 8:13am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Did add numeric values as text or as&nbsp;Integer, Long, Double? RC supports type sorting. If you added it as text it sorts like MS explorer does,&nbsp;&nbsp; 1,10,11,2,3,4,5&nbsp;etc, etc</DIV><DIV>&nbsp;</DIV><DIV>If you are able to convert text to type you need it will work, if you can't just&nbsp;set .SortPriority&nbsp;when adding items to RC &nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 13 Jul 2011 08:13:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65247&amp;title=sort-the-column-to-numeric-values#65247</guid>
  </item> 
  <item>
   <title><![CDATA[Sort the column to numeric values​​? : How to sortthe column tonumeric...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65246&amp;title=sort-the-column-to-numeric-values#65246</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5633">g.novi</a><br /><strong>Subject:</strong> 18655<br /><strong>Posted:</strong> 13 July 2011 at 7:27am<br /><br /><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">How to sort</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">the column to</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">numeric values</span><span title="Fai clic per visualizzare le traduzi&#111;ni alternative" ="">​​?</span></font></span><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">A</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">report column</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">contains numeric values</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">​​but the sort</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">does not work.</span></font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><br></font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">Now sort in this way:</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;10,00</font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp;100,00</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;12,00</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;13,00 &nbsp;&nbsp;</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;20,00</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp; &nbsp;3,00</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp;</font></span></span></div><div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">I would like</span>&nbsp;<span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative">this result:</span></font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp; &nbsp;3,00</font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;10,00</font></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;12,00</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;13,00 &nbsp;&nbsp;</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;20,00</font></span></span></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp;100,00</font></span></span></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="Apple-style-span" style="line-height: normal;"><br></span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><span ="Apple-style-span" style="line-height: normal;">Thank's to all</span></font></div><div><span ="Apple-style-span" style="line-height: normal; "><span ="hps" title="Fai clic per visualizzare le traduzi&#111;ni alternative"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">&nbsp; &nbsp;</font></span></span></div></div>]]>
   </description>
   <pubDate>Wed, 13 Jul 2011 07:27:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18655&amp;PID=65246&amp;title=sort-the-column-to-numeric-values#65246</guid>
  </item> 
 </channel>
</rss>