<?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 : Binding Objects</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Binding Objects</description>
  <pubDate>Tue, 28 Apr 2026 04:50:07 -700</pubDate>
  <lastBuildDate>Fri, 03 Apr 2009 07:14:57 -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=986</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>Binding Objects : Thanks for the response. The S...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=4258#4258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 03-Apr-2009 at 7:14am<br /><br />Thanks for the response. The System.Collections.ObjectModel.ObservableCollection is new to me so I'll check it out. But, I am doing WinForms.&nbsp;You mentioned if I "want to take advanatage of&nbsp;the DevForce BindingManagers". I have in a couple of instances (using the DevExpress Lookup Grid control) not used the BindingManager and everything seemed to work fine. Is the&nbsp;DevForce BindingManager purely optional? Are there any disadvantages/pitfalls when not using the BindingManager?<DIV>&nbsp;</DIV><DIV>Again, thanks for you input.</DIV><DIV>&nbsp;</DIV><DIV>Darren&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 07:14:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=4258#4258</guid>
  </item> 
  <item>
   <title>Binding Objects : The BindableList is still important...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=4250#4250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 02-Apr-2009 at 6:16pm<br /><br />The BindableList is still important if you're doing a Winforms user interface and want to take advantage of DevForce's WinForm support (BindingManagers, etc.)<br><br>If you're doing WPF or Silverlight, the System.Collections.ObjectModel.ObservableCollection&lt;T&gt; (part of .NET) offers similar functionality.<br>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 18:16:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=4250#4250</guid>
  </item> 
  <item>
   <title>Binding Objects : Regarding: &amp;#034;The BindableList...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=4223#4223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 31-Mar-2009 at 1:23pm<br /><br />Regarding: "<strong>The <SPAN =highlight>BindableList</SPAN> included with DevForce EF is intended for legacy support</strong>" <DIV>&nbsp;</DIV><DIV>What&nbsp;object would I use that is&nbsp;not a legacy object but would provide similar funtionality? Or is there a different way to do this entirely? I'm starting all over on my project since I've been away from it for a while so I have no legacy requirements at this time and I've&nbsp;only installed the EF version of DevForce. I'd like to start off correctly using only an EF design. </DIV><DIV>&nbsp;</DIV><DIV>The code I'm converting:</DIV><DIV>&nbsp;</DIV><DIV>/// &lt;summary&gt;Get Employees from Department&lt;/summary&gt; <BR>public BindableList&lt;Employee&gt; DivisionDepartments { <BR>get {<BR>&nbsp;BindableList&lt;Employee&gt; mList = new BindableList&lt;Employee&gt;();<BR>&nbsp;mList.AddRange(this.Employees);<BR>&nbsp;return mList;<BR>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV><DIV>I'm a little confused because when I created a new project IdeaBlade.Util was not included as a reference, but it looks like this assembly, as&nbsp;well as the BindableList object,&nbsp;is used extensively in all the examples I've looked at. </DIV>]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 13:23:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=4223#4223</guid>
  </item> 
  <item>
   <title>Binding Objects : Thanks! Must have skipped that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3975#3975</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 04-Mar-2009 at 2:54pm<br /><br />Thanks! Must have skipped that small step! :)]]>
   </description>
   <pubDate>Wed, 04 Mar 2009 14:54:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3975#3975</guid>
  </item> 
  <item>
   <title>Binding Objects : The BindableList included with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3973#3973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 04-Mar-2009 at 2:22pm<br /><br />The BindableList included with DevForce EF is intended for legacy support within DevForce and not outside use.&nbsp; You can still use the IdeaBlade.Util.BindableList from DevForce Classic in your DevForce EF WinForms applications.&nbsp; Several of the tutorials, including "Configuring a WinForm" from the 100 Fundamentals series, show how to use both DevForce EF and Classic in the same application.]]>
   </description>
   <pubDate>Wed, 04 Mar 2009 14:22:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3973#3973</guid>
  </item> 
  <item>
   <title>Binding Objects : Is there a reason that BindableList...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3970#3970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 04-Mar-2009 at 12:25pm<br /><br />Is there a reason that BindableList is now declared as Friend instead of Public in IdeaBlade.Util.v4 ?]]>
   </description>
   <pubDate>Wed, 04 Mar 2009 12:25:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3970#3970</guid>
  </item> 
  <item>
   <title>Binding Objects : Happy to be of assistance! </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3590#3590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 07-Nov-2008 at 10:32pm<br /><br />Happy to be of assistance!]]>
   </description>
   <pubDate>Fri, 07 Nov 2008 22:32:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3590#3590</guid>
  </item> 
  <item>
   <title>Binding Objects : Thanks for all the suggestions....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3575#3575</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 06-Nov-2008 at 7:47am<br /><br />Thanks for all the suggestions. Well explained and really helped to clear a couple of things up. I did get the application to compile.&nbsp;With these comments I can go back&nbsp;and refine the code with a better understanding of what I'm doing. Again, thanks for the help.<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 06 Nov 2008 07:47:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3575#3575</guid>
  </item> 
  <item>
   <title>Binding Objects :  Originally posted by pucsoftware I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3571#3571</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 05-Nov-2008 at 3:15pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by pucsoftware</strong></em><br /><br /><DIV><FONT color=#0033ff>I've tried the following:</FONT></DIV><DIV>&nbsp;</DIV><DIV>var filterCurrentEmployees = new Predicate&lt;Employee&gt;(delegate(Employee anEmployee) { <BR>&nbsp;return anEmployee.Status.StatusCode&nbsp; == "C"; <BR>});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>mEmployeesFilter.AddRange(mEmployees);<BR>mEmployeesFilter.<strong>ListManager</strong> = new <strong>EntityListManager</strong>&lt;Employee&gt;(mPersMgr, filterCurrentEmployees, null);</DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0066ff size=2>BUT now I get an incompatibility with the EntityListManager and the ListManager! </FONT></FONT></DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>You now need to configure the link between the manager from the other direction:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; EntityListManager&lt;Employee&gt; elm = new <strong>EntityListManager</strong>&lt;Employee&gt;(mPersMgr, filterCurrentEmployees, null);</DIV><DIV><FONT size=2>&nbsp;&nbsp; elm.ManageList(mEmployeesFilter, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 05 Nov 2008 15:15:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3571#3571</guid>
  </item> 
  <item>
   <title>Binding Objects :  Originally posted by pucsoftwareI&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3569#3569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 05-Nov-2008 at 2:57pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by pucsoftware</strong></em><br /><br /><BR>I've now changed the bold line to:<BR>mEmployees = (BindableList&lt;Employee&gt;) mPersMgr.ExecuteQuery(query);<BR>Is this correct? It's the only way I could get it to compile because the BindableList isn't compatible with IEnumerable, I think.<BR></td></tr></table><BR>&nbsp;<BR>In general you should use <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; mEmployees.ReplaceRange(IEnumerable&lt;T&gt; pValues)<BR>&nbsp;<BR>to populate a BindableList.&nbsp; What you did above replaces existing mEmployees with a new one, and therefore breaks any linkages you've already configured.&nbsp; Specifically, if you say<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; BindableList&lt;Employee&gt; mEmployees = new BindableList&lt;Employee&gt;();<BR>&nbsp;&nbsp;&nbsp; BindingSource mEmployeesBS = new BindingSource();<BR>&nbsp;&nbsp;&nbsp; mEmployeesBS.DataSource = mEmployees;<BR>&nbsp;&nbsp;&nbsp; mEmployees = any other BindableList returned by any method call<BR>&nbsp;<BR>then the link between mEmployees and mEmployeesBS gets broken.&nbsp; But if your last line was<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; mEmployees.ReplaceRange( any IEnumerable&lt;Employee&gt; )<BR>&nbsp;<BR>that link is not broken.</P><P>(FYI, all of the above applies equally to V3, except there you'd likely be using EntityLists rather than BindableLists.)<BR>&nbsp;<BR>&nbsp;<BR></P>]]>
   </description>
   <pubDate>Wed, 05 Nov 2008 14:57:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3569#3569</guid>
  </item> 
  <item>
   <title>Binding Objects :  Originally posted by pucsoftware So,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3568#3568</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 05-Nov-2008 at 2:55pm<br /><br /><DIV><FONT color=#0033ff><FONT color=#000000><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by pucsoftware</strong></em><br /><br /></FONT></FONT></DIV><DIV><FONT color=#0033ff>So, when declaring objects now it looks like I now have a choice of using a BindableList or BindingList. So, what is the difference and which one should I use?</FONT></DIV><DIV></td></tr></table>&nbsp;</DIV><DIV><FONT color=#0033ff></FONT>&nbsp;</DIV><DIV><FONT color=#0033ff>Use the BindableList&lt;T&gt; if you're developing a user interface with Winforms and want to use DevForce data binding and the DevForce UI components and designers. </FONT></DIV><DIV><FONT color=#0033ff></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 05 Nov 2008 14:55:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3568#3568</guid>
  </item> 
  <item>
   <title>Binding Objects : I&amp;#039;m converting a DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3561#3561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 986<br /><strong>Posted:</strong> 04-Nov-2008 at 10:09am<br /><br /><FONT color=#0033ff>I'm converting a DevForce classic application to DevForceEF. I'm new to the EF, Link, and DevForceEF so I'm having a problem understanding the upgrade and converting the code. For example here is some of my code:</FONT><DIV>&nbsp;</DIV><DIV>private EntityList&lt;LuActionType&gt; mLuActionType;<BR>private BindingList&lt;Employee&gt; mEmployeesBlank;<BR>private EntityList&lt;Employee&gt; mEmployeesFilter;<BR>private EntityList&lt;Employee&gt; mEmployees;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0033ff>I've included the following references:</FONT></DIV><DIV>using IdeaBlade.EntityModel.v4;<BR>using IdeaBlade.Util;<BR>using DomainModel;<BR></DIV><DIV><FONT color=#0033ff>So, when declaring objects now it looks like I now have a choice of using a BindableList or BindingList. So, what is the difference and which one should I use?</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0033ff>USING A PASSTHRU. Here is my old code:</FONT></DIV><DIV>//-- using a passthru query<BR>PassthruRdbQuery query = Employee.GetEmpoyeeDobByMonth(_currentmo.ToString());<BR>query.QueryStrategy = QueryStrategy.DataSourceOnly;<BR><strong>mEmployees = mPersMgr.GetEntities&lt;Employee&gt;(query);</strong><BR>bsEmployee.DataSource = mEmployees;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0033ff>I've now changed the bold line to:</FONT></DIV><DIV>mEmployees = (BindableList&lt;Employee&gt;) mPersMgr.ExecuteQuery(query);</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0033ff>Is this correct? It's the only way I could get it to compile because the BindableList isn't compatible with IEnumerable, I think.</FONT></DIV><DIV><FONT color=#0033ff></FONT>&nbsp;</DIV><DIV><FONT color=#0033ff>USING A FILTER/PREDICATE</FONT></DIV><DIV><FONT color=#0033ff>I've tried the following:</FONT></DIV><DIV>&nbsp;</DIV><DIV>var filterCurrentEmployees = new Predicate&lt;Employee&gt;(delegate(Employee anEmployee) { <BR>&nbsp;return anEmployee.Status.StatusCode&nbsp; == "C"; <BR>});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>mEmployeesFilter.AddRange(mEmployees);<BR>mEmployeesFilter.<strong>ListManager</strong> = new <strong>EntityListManager</strong>&lt;Employee&gt;(mPersMgr, filterCurrentEmployees, null);</DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0066ff size=2>BUT now I get an incompatibility with the EntityListManager and the ListManager! </FONT></FONT></DIV><DIV><FONT size=2><FONT color=#0066ff size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0066ff size=2>I've looked through the examples and the developers guide but neither give me&nbsp;a full picture of how to do the conversions, nor do the uses of objects&nbsp;seem consistent between the examples. Any help would be appreciated.</FONT></FONT></DIV><DIV><FONT color=#0066ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2>&nbsp;</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 04 Nov 2008 10:09:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=986&amp;PID=3561#3561</guid>
  </item> 
 </channel>
</rss>