<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : order by in child collection</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : order by in child collection</description>
  <pubDate>Tue, 14 Apr 2026 16:17:27 -700</pubDate>
  <lastBuildDate>Wed, 28 Nov 2007 12:38:43 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=563</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>order by in child collection : You can set up your nested grid...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=563&amp;PID=2031#2031</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 563<br /><strong>Posted:</strong> 28-Nov-2007 at 12:38pm<br /><br />You can set up your nested grid by using "chained binding" or by using "event handlers".&nbsp; The advantage of using "chained binding" (as shown in the "Populating a WinForm" tutorial) is that there is absolutely no code to write.&nbsp; The disadvantage is that you have no control over how the EntityList for the detail grid is populated.&nbsp; Therefore, you will need to use an Event Handler. <DIV>&nbsp;</DIV><DIV>The Event Handler that you will need is for the CurrentChanged event on the BindingSource to which your&nbsp;primary grid&nbsp;is bound.&nbsp; When the CurrentChanged event fires on the BindingSource, just build a new EntityList.&nbsp; Build the EntityList using an OrderBy clause.&nbsp; Note that your query will be asking for all detail objects that have a&nbsp;parent id equal to the id of the currently selected parent.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by davidklitzke - 28-Nov-2007 at 12:50pm</span>]]>
   </description>
   <pubDate>Wed, 28 Nov 2007 12:38:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=563&amp;PID=2031#2031</guid>
  </item> 
  <item>
   <title>order by in child collection : I have an object with a child...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=563&amp;PID=2027#2027</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=190" rel="nofollow">Makani</a><br /><strong>Subject:</strong> 563<br /><strong>Posted:</strong> 28-Nov-2007 at 8:44am<br /><br />I have an object with a child collection.&nbsp; I have tied the child collection to a grid.&nbsp; It is not apparent to me how to pass an order by to&nbsp;the hydration of this&nbsp;collection. Do I have to use an Rdb&nbsp;subquery if I want an ordered child collection?<DIV>&nbsp; </DIV>]]>
   </description>
   <pubDate>Wed, 28 Nov 2007 08:44:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=563&amp;PID=2027#2027</guid>
  </item> 
 </channel>
</rss>