﻿<?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?)  » IsDirty</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 07:48:53 GMT</lastBuildDate><ttl>20</ttl><item><title>IsDirty</title><link>http://forum.strataframe.net/FindPost4954.aspx</link><description>In a maintenance form, I have a method to check the IsDirty property of the business object and prompting the user to save changes if IsDirty is true.&lt;/P&gt;&lt;P&gt;If the BO is in edit mode and without making any edits to the bound fields, IsDirty is returning true when I close the form while in edit mode. Is this the desired behavior for IsDirty? Or should I look at another property or method to determine if changes have been made?&lt;/P&gt;&lt;P&gt;Thanks!!</description><pubDate>Tue, 05 Dec 2006 14:58:27 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4985.aspx</link><description>I understand :)</description><pubDate>Tue, 05 Dec 2006 14:58:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4984.aspx</link><description>I noticed you used that reset option in class and resolved to get into that habit myself, but being a boolean field, I didn't stress over it. :p</description><pubDate>Tue, 05 Dec 2006 14:55:56 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4983.aspx</link><description>No problem ;) .... the .NET environment can sometimes cause serialization frustrations (saving your property settings in the designer file).&amp;nbsp; Just make sure the right-click -&amp;gt; Reset takes effect by saving and getting out of the class and coming back in.</description><pubDate>Tue, 05 Dec 2006 14:51:21 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4982.aspx</link><description>I had a feeling this wasn't as simple as setting that one property  :pinch:</description><pubDate>Tue, 05 Dec 2006 14:48:43 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4981.aspx</link><description>D'oh. For some reason my IsDirtyOnExit changing back to true didn't take. I just wasted support points.:blush:</description><pubDate>Tue, 05 Dec 2006 14:48:11 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4978.aspx</link><description>It sounds like you have some of the IncludeInForm settings changed.&amp;nbsp; What are the settings of your IncludeInForm properties on the form and on the business objects?&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/58be37dd-b204-4612-9317-ec9f.jpg"&gt;</description><pubDate>Tue, 05 Dec 2006 14:38:48 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4976.aspx</link><description>Once I click Edit, &lt;STRONG&gt;ALL&lt;/STRONG&gt; the buttons are disabled including Save and Undo.:unsure:</description><pubDate>Tue, 05 Dec 2006 14:35:49 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4975.aspx</link><description>If you click the Undo or Save the buttons should be reset if you are using the default IncludeInForm settings.&amp;nbsp; If you have modified the IncludeInForm settings to determine which BOs are navigated, edited, added, etc. then you can change the behavior of the MaintenanceFormToolstrip.</description><pubDate>Tue, 05 Dec 2006 14:27:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4974.aspx</link><description>I see now. :hehe: But setting SetDirtyOnEdit back to true, my toolbar still doesn't get notification. After going into edit mode ALL the buttons disable. How do I get them back?</description><pubDate>Tue, 05 Dec 2006 14:24:27 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4964.aspx</link><description>Keep in mind that you can have some side-effects from doing this though.&amp;nbsp; Your MaintenanceFormToolstrip will not properly reflect your edit mode since the EditingStateChanged event did not change.&amp;nbsp; Another option here is to turn off the auto-prompting:&lt;/P&gt;&lt;P&gt;MyForm.AutoShowSaveChangesMessage = False&lt;/P&gt;&lt;P&gt;This is another direction.&amp;nbsp; Just FYI :)</description><pubDate>Tue, 05 Dec 2006 12:54:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4962.aspx</link><description>That's it. Setting &lt;STRONG&gt;SetDirtyOnEdit&lt;/STRONG&gt; to false gave me the desired behavior. Thanks Greg!</description><pubDate>Tue, 05 Dec 2006 12:39:06 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: IsDirty</title><link>http://forum.strataframe.net/FindPost4961.aspx</link><description>There is a property for BOs in the Strataframe: Business Layer Settings called SetDirtyOnEdit. My guess is that if you set this to False, then it will only be marked dirty when an actual edit is made. (I haven't messed with it yet, so this is just a guess).</description><pubDate>Tue, 05 Dec 2006 12:33:42 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>