﻿<?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 - V1 » Business Objects and Data Access (How do I?)  » Error provider and grid</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 10:26:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Error provider and grid</title><link>http://forum.strataframe.net/FindPost11493.aspx</link><description>Hi,&lt;br&gt;
I bind my BO to grid using BusinessBindingSource. When I debug ShowBrokenRule() method, found that _boundcontrols.Count = 0. However, error provider will be shown in grid column if any rule broken.&lt;br&gt;
&lt;br&gt;
Please advice.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Tue, 18 Sep 2007 13:33:27 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Error provider and grid</title><link>http://forum.strataframe.net/FindPost11545.aspx</link><description>If you are trying to reference the business object from within an event handler of the grid, chances are good that you're using the wrong BO reference.&amp;nbsp; The BusinessBindingSource wraps the business object and returns a new instance of the business object for each record requested by the BBS (because most grids store off the refence to the list object, and if they were all the same, it would cause a problem).&amp;nbsp; So, if you are checking broken rules, or trying to add a broken rule from within your grid, you'll need to use the BBS.BusinessObject reference, because that is the reference to the business object that has the bound controls.</description><pubDate>Tue, 18 Sep 2007 13:33:27 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error provider and grid</title><link>http://forum.strataframe.net/FindPost11507.aspx</link><description>The _BoundControls may not have been populated at that point in your debug.&amp;nbsp; ALso, there are some logic differences between binding through a BBS to a grid and binding to a control such as a textbox outside of the BBS.&amp;nbsp; What are you trying to accomplish here?&amp;nbsp; Prevent the broken rules from appearing?</description><pubDate>Mon, 17 Sep 2007 09:36:42 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>