<?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 : Sorting problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Sorting problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 17:20:19 +0000</pubDate>
  <lastBuildDate>Tue, 29 Apr 2008 06:28:15 +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=10390</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[Sorting problem : Hi,  When adding records to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10390&amp;PID=34367&amp;title=sorting-problem#34367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10390<br /><strong>Posted:</strong> 29 April 2008 at 6:28am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>When adding records to the ReportControl they will have an index in the order you added them, OK?</DIV><DIV>&nbsp;</DIV><DIV>If you sort a column, the index of a record does not change, only the order will change. If you want to traverse the ReportControl as you see them you have to traverse the <strong>ReportRows</strong>.</DIV><DIV>&nbsp;</DIV><DIV>Just to give you an example to see the difference when a column has been sorted. Just add a few records to ReportControl and call ShowDifference. Sort one column and call ShowDifference again. The first time you will&nbsp;have 0,1,2,3,4,5 after sorting you will have&nbsp;a different values.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Private Function ShowDifference()&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim row As ReportRow<BR>&nbsp;&nbsp;&nbsp; For Each row In wndReportControl.Rows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox row.record.Index <BR>&nbsp;&nbsp;&nbsp; Next row</DIV><DIV>End Function</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 06:28:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10390&amp;PID=34367&amp;title=sorting-problem#34367</guid>
  </item> 
  <item>
   <title><![CDATA[Sorting problem : I am using Report controlI applied...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10390&amp;PID=34359&amp;title=sorting-problem#34359</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3927">AbhishekGoenka</a><br /><strong>Subject:</strong> 10390<br /><strong>Posted:</strong> 29 April 2008 at 3:09am<br /><br /><br>I am using Report control<br><br>I applied the sort command by clicking on the column header. The view is changed. but when I <span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;">traverse the row programically I found the same sequence as before sorting<br><br>How the change the sequence of rows when sorting is applied<br></span>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 03:09:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10390&amp;PID=34359&amp;title=sorting-problem#34359</guid>
  </item> 
 </channel>
</rss>