﻿<?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 » WinForms (How do I?)  » Is there any plan to support bindding to the IsDirty Property of a business object?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 26 Jun 2026 12:21:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Is there any plan to support bindding to the IsDirty Property of a business object?</title><link>http://forum.strataframe.net/FindPost8436.aspx</link><description>Thanks for the reply...I think I'll leave it the way I have it setup now....I just wanted to make sure I wasn't missing out on a more elegant solution.&lt;br&gt;
&lt;br&gt;
Jerome</description><pubDate>Mon, 23 Apr 2007 10:37:32 GMT</pubDate><dc:creator>Jerome Barnett</dc:creator></item><item><title>Is there any plan to support bindding to the IsDirty Property of a business object?</title><link>http://forum.strataframe.net/FindPost8318.aspx</link><description>Currently I have a Save and a Cancel button on my main form.  I change there enabled state in the myBO.EditingStateChanged and BO_FieldPropertyChanged events&lt;br&gt;
    mybutton.Enabled = myBO.IsDirty&lt;br&gt;
but I would rather databind to the IsDirty property so that I don't have to needlessly piggyback off of two other events.&lt;br&gt;
&lt;br&gt;
Any ideas on how to accomplish this?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
Jerome</description><pubDate>Mon, 23 Apr 2007 10:37:32 GMT</pubDate><dc:creator>Jerome Barnett</dc:creator></item><item><title>RE: Is there any plan to support bindding to the IsDirty Property of a business object?</title><link>http://forum.strataframe.net/FindPost8412.aspx</link><description>In order for .NET data binding to bind to a property, the property must support changed events.&amp;nbsp; The business objects do not have an IsDirtyChanged event to go along with the IsDirty property because the IsDirty property is not stored in a value within the business object... it is determined by doing a Select() of the RowState of the rows within the business object when the Get of the IsDirty property is called.&amp;nbsp; If you don't want to piggy back off of those 2 events, you can either dynamically add a handler to the BO.CurrentView.ListChanged event or drop a BusinessBindingSource on the form and set its business object to your business object and bind to its ListChanged event.&amp;nbsp; That event will get fired whenever any data within the internal table is changed.</description><pubDate>Mon, 23 Apr 2007 08:39:21 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Is there any plan to support bindding to the IsDirty Property of a business object?</title><link>http://forum.strataframe.net/FindPost8379.aspx</link><description>I think I might not have been clear.  My objective is to have the buttons only available if the BO is Dirty not when it is just in edit mode.&lt;br&gt;
&lt;br&gt;
I have SetDirtyOnEdit set to false.  Just wondering what the best/recommended way to Enable/Disable buttons based on whether a BO has been modified is.&lt;br&gt;
If there is not other way I will proceed as I have already, but I'd like to know if I am overlooking a better way.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
Jerome</description><pubDate>Fri, 20 Apr 2007 11:31:56 GMT</pubDate><dc:creator>Jerome Barnett</dc:creator></item><item><title>RE: Is there any plan to support bindding to the IsDirty Property of a business object?</title><link>http://forum.strataframe.net/FindPost8332.aspx</link><description>The IsDirty property really does nothing more than enumerate through the internal data table to see if there are any dirty records.&amp;nbsp; Really all you have to do is set the BusinessObject property of the button and leave the BindingField empty.&amp;nbsp; This should manage the editing state of the button without any code at all.</description><pubDate>Thu, 19 Apr 2007 22:09:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>