﻿<?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?)  » New BO Property 'SetDirtyOnEdit'</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 01:15:04 GMT</lastBuildDate><ttl>20</ttl><item><title>New BO Property 'SetDirtyOnEdit'</title><link>http://forum.strataframe.net/FindPost3384.aspx</link><description>I cannot find any documentation on this new property and have a question on how it's supposed to&amp;nbsp;work with the&amp;nbsp;Maintenance Form Toolstrip. When this property is set to 'True' (Default) and you click on edit button (IsDirty is set to True), New/Edit/Delete and Browse buttons are disabled, Save and Undo buttons are enabled and the save dialog is always displayed regardless if a change is made.&lt;/P&gt;&lt;P&gt;When SetDirtyOnEdit is 'False' and you click on edit, all the buttons on the toolbar are disabled and&amp;nbsp; 'IsDirty' is only set when a value is changed. All the buttons remain disabled even if you change a value.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there something I'm missing or is the intended behaviour? Shouldn't the toolbar buttons remain in their original state until a value is changed?</description><pubDate>Sat, 07 Oct 2006 10:21:04 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: New BO Property 'SetDirtyOnEdit'</title><link>http://forum.strataframe.net/FindPost3385.aspx</link><description>[quote]Is there something I'm missing or is the intended behaviour? Shouldn't the toolbar buttons remain in their original state until a value is changed?[/quote]&lt;/P&gt;&lt;P&gt;This is the intended behavior.&amp;nbsp; It is not recommended to use the MaintenanceFormToolstrip in the manner.&amp;nbsp; Regardless, when you set the SetDirtyOnEdit to False, the EditingStateChange event will not fire the same way, which is the event that triggers the MaintenanceFormToolstrip to update itself.&amp;nbsp; The reason for this is because the IsDirty state is changing, but the EditingState was never modified.&amp;nbsp;&amp;nbsp;When using the standard MaintenanceFormToolstrip and standard maintenance forms, it is recommended to leave this property alone if you want the MaintenanceFormToolstrip to manage itself.&amp;nbsp; Otherwise you can create your own MaintenanceFormToolstrip and manage the buttons yourself based upon your desired behavior and the IsDirty property.</description><pubDate>Sat, 07 Oct 2006 10:21:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>