﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Business Objects and Data Access (How do I?)  / Binding a control to a Business object NOT on the form / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Tue, 02 Dec 2008 15:44:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Binding a control to a Business object NOT on the form</title><link>http://forum.strataframe.net/Topic2133-6-1.aspx</link><description>No problem :)</description><pubDate>Wed, 09 Aug 2006 12:51:52 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Binding a control to a Business object NOT on the form</title><link>http://forum.strataframe.net/Topic2133-6-1.aspx</link><description>Thanks Ben,  works great.</description><pubDate>Wed, 09 Aug 2006 11:48:43 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Binding a control to a Business object NOT on the form</title><link>http://forum.strataframe.net/Topic2133-6-1.aspx</link><description>You can programmatically set the business object that is bound to a control at runtime.  So, if you expose the business object as a public property on your class, you will be able to bind to it at runtime by setting the BusinessObject property on the control to the property returned by your class.  The only difference between binding at runtime and binding at design-time is that you will need to manually call Refresh() on the business object after you setup the binding so that the value is pushed out the first time.&lt;/P&gt;&lt;P&gt;I think the way you have it configured is probably your best bet.</description><pubDate>Wed, 09 Aug 2006 08:37:19 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>Binding a control to a Business object NOT on the form</title><link>http://forum.strataframe.net/Topic2133-6-1.aspx</link><description>Is there a way to get winforms controls to bind to a business object that is NOT on the form?&lt;/P&gt;&lt;P&gt;I have a class that has several BO's as properties and the class manages loading the BO's with the requested data and provides functionality to maintain the required table relations.  Is there a better way of doing this?  Maybe a view based on the underlying tables?  If this is the best option, would we need to used the DDT to set a primary key field so that the business object can update the view?&lt;/P&gt;&lt;P&gt;Thanks for any input.</description><pubDate>Tue, 08 Aug 2006 18:39:08 GMT</pubDate><dc:creator>Scott</dc:creator></item></channel></rss>