﻿<?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?)  » How to find which field is dirty?</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 17:44:46 GMT</lastBuildDate><ttl>20</ttl><item><title>How to find which field is dirty?</title><link>http://forum.strataframe.net/FindPost31228.aspx</link><description>I have a number of Business Objects on my form. In edit mode, even though I didnt do any change to any field and I try to close the form I get the save confirmation message. I found out that some Business Objects have IsDirty porperty true but I couldnt find out how to detect which fields are dirty.&lt;br/&gt;&lt;br/&gt;Could you please help?</description><pubDate>Thu, 31 May 2012 09:46:59 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: How to find which field is dirty?</title><link>http://forum.strataframe.net/FindPost31230.aspx</link><description>Add an IsDirtyChanged event to your BOs. Set a break-point to them and run your application. At the time the IsDirty gets changed, your application will enter into debug and then you can check the Call Stack, which will give you the path it went on to "dirty" your BO.</description><pubDate>Thu, 31 May 2012 09:46:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: How to find which field is dirty?</title><link>http://forum.strataframe.net/FindPost31229.aspx</link><description>Hi,&lt;br/&gt;A BO becomes dirty when you:&lt;br/&gt;&lt;ol&gt;&lt;li&gt;Call BO.Edit() or BO.Add&lt;/li&gt;&lt;li&gt;When you assign a value to one of its properties&lt;/li&gt;&lt;/ol&gt;Most common cases is when you have code in a combobox.SelectedIndexChanged which will be triggered when the form is loading and then if you modify a BO property, the BO.IsDirty will be True.&lt;br/&gt;&lt;br/&gt;When the form is closing there is code that will loop through all BOs and check for bo.IsDirty = True and then show you the message.&amp;nbsp; The solution is review any code where you may be assigning a value to any of the BOs properties and that will fix this issue.</description><pubDate>Thu, 31 May 2012 09:38:04 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>