﻿<?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?)  » Standard Maintenace Form Buttons</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 14:38:37 GMT</lastBuildDate><ttl>20</ttl><item><title>Standard Maintenace Form Buttons</title><link>http://forum.strataframe.net/FindPost3850.aspx</link><description>I am using&amp;nbsp;a standard maintenance form,&amp;nbsp; when the primary bo's setdirtyonedit is set to true everything work fine, if I change the setdirtyonedit to false when I go into edit mode the save and undo button are disabled (all buttons are disabled).&lt;/P&gt;&lt;P&gt;Scott</description><pubDate>Wed, 25 Oct 2006 19:50:42 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Standard Maintenace Form Buttons</title><link>http://forum.strataframe.net/FindPost3853.aspx</link><description>Thanks for the info.</description><pubDate>Wed, 25 Oct 2006 19:50:42 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Standard Maintenace Form Buttons</title><link>http://forum.strataframe.net/FindPost3851.aspx</link><description>If you change the SetDirtyOnTrue to False the MaintenanceFormToolstrip will not behave properly any longer.&amp;nbsp; This is by design.&amp;nbsp; This is due to the lack of events that get raised...primarily the EditingStateChanged event.&amp;nbsp; So the toolbar is actually behaving properly since it goes off of the editing state of the BO...however, just changing a field will make a BO dirty, but it does not raise the EditingState event and it would be difficult to know without creating a lot of overhead.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Just so this makes a little more sense and you&amp;nbsp;reply asking if we could just raise the EditingStateChanged event as soon as someone changes a field within a row :) ... the answer is that if you look at the IsDirty property in code, we are just looking at the current row to see if it has been modified.&amp;nbsp; This is not an internal counter within the BO itself...that is why it would require a lot of overhead in order to trap a changed field value and then raise the BO event.&amp;nbsp; In this scenario it is generally best to create your own toolstrip if you are going to take this approach.</description><pubDate>Wed, 25 Oct 2006 17:11:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>