<?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 : Automatic sorting</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Automatic sorting]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 00:36:04 +0000</pubDate>
  <lastBuildDate>Sun, 10 Dec 2006 13:59:39 +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=5686</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[Automatic sorting : I would recommend you changing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=18048&amp;title=automatic-sorting#18048</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5686<br /><strong>Posted:</strong> 10 December 2006 at 1:59pm<br /><br />I would recommend you changing the last piece of code to the following:<br><table width="99%"><tr><td><pre class="BBcode"><br>'Set the properties<br>Dim sItemValue as String<br>sItemValue = Item!Name<br>Set oItm = oRow.AddItem(sItemValue)<br>oItm.Tag = Item!ID<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sun, 10 Dec 2006 13:59:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=18048&amp;title=automatic-sorting#18048</guid>
  </item> 
  <item>
   <title><![CDATA[Automatic sorting : Yes I do but it still doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17973&amp;title=automatic-sorting#17973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2071">cryo75</a><br /><strong>Subject:</strong> 5686<br /><strong>Posted:</strong> 07 December 2006 at 1:12am<br /><br />Yes I do but it still doesn't work.<DIV>&nbsp;</DIV><DIV>Reportcontrol and column are setup like this:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; 'Create grid<BR>&nbsp;&nbsp;&nbsp; With grdList<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnRemove = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnReorder = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnResize = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnSort = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .BorderStyle = xtpBorderFrame<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MultipleSelection = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.HighlightBackColor = &amp;HC6F3FF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.HighlightForeColor = vbBlack<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Columns.DeleteAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set oCol = .Columns.Add(ID_GRID_LOCATION, oLang.Translate(1201), 400, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCol.AutoSize = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCol.Sortable = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCol.SortAscending = True<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>And I add a record like this:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim lRow As Long<BR>&nbsp;&nbsp;&nbsp; Dim oRow As ReportRecord<BR>&nbsp;&nbsp;&nbsp; Dim oItm As ReportRecordItem<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; lRow = GetRowByID(Item!ID)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With grdList<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Add to the list<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lRow = 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set oRow = grdList.Records.Add<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Get current record<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set oRow = grdList.Records(lRow)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Set the properties<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set oItm = oRow.AddItem(vbNullString)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With oItm<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Value = Item!Name<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Tag = Item!ID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<BR>&nbsp;&nbsp;&nbsp; End With</DIV>]]>
   </description>
   <pubDate>Thu, 07 Dec 2006 01:12:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17973&amp;title=automatic-sorting#17973</guid>
  </item> 
  <item>
   <title><![CDATA[Automatic sorting : it must work. do you call Populae...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17972&amp;title=automatic-sorting#17972</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5686<br /><strong>Posted:</strong> 07 December 2006 at 12:58am<br /><br />it must work. do you call Populae method?]]>
   </description>
   <pubDate>Thu, 07 Dec 2006 00:58:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17972&amp;title=automatic-sorting#17972</guid>
  </item> 
  <item>
   <title><![CDATA[Automatic sorting : bump!! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17962&amp;title=automatic-sorting#17962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2071">cryo75</a><br /><strong>Subject:</strong> 5686<br /><strong>Posted:</strong> 06 December 2006 at 12:25pm<br /><br />bump!! <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">]]>
   </description>
   <pubDate>Wed, 06 Dec 2006 12:25:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17962&amp;title=automatic-sorting#17962</guid>
  </item> 
  <item>
   <title><![CDATA[Automatic sorting : Hi,  I&amp;#039;ve got a reportcontrol...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17926&amp;title=automatic-sorting#17926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2071">cryo75</a><br /><strong>Subject:</strong> 5686<br /><strong>Posted:</strong> 05 December 2006 at 2:56am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I've got a reportcontrol with just one column, and it's set to be sorted in ascending order. </DIV><DIV>&nbsp;</DIV><DIV>When I add records to the control, they are not automatically sorted but simply added&nbsp;to the bottom of the list.</DIV><DIV>&nbsp;</DIV><DIV>How can records be automatically sorted when added?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Ivan</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 05 Dec 2006 02:56:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5686&amp;PID=17926&amp;title=automatic-sorting#17926</guid>
  </item> 
 </channel>
</rss>