﻿<?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?)  » Value not updated if not lost focus</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 13 Sep 2026 20:23:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Value not updated if not lost focus</title><link>http://forum.strataframe.net/FindPost26934.aspx</link><description>Yep, not understanding your issue here. The solution presented in that thread is to create a subclassed textbox if you &lt;EM&gt;don't&lt;/EM&gt; want to handle OnValidate on every instance.&amp;nbsp; If you already have an inherited textbox and are running into odd behavior when using Trim(), then overrite the OnTextChanged event as Trent described in that thread instead of worring about OnValidate.</description><pubDate>Tue, 20 Apr 2010 09:20:20 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>Value not updated if not lost focus</title><link>http://forum.strataframe.net/FindPost9963.aspx</link><description>Hi,&lt;br&gt;
I faced problem of, if I enter some values to textbox, click save button without lost focus the vale would not updated to underlying datasource.&lt;br&gt;
&lt;br&gt;
Any ideas?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Tue, 20 Apr 2010 09:20:20 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Value not updated if not lost focus</title><link>http://forum.strataframe.net/FindPost26915.aspx</link><description>Looks like the answer is right in the thread you cited.  Subclass the sf textbox, add the code shown and try using that.  (remember you can change the inheritance of the textboxes where needed by just hacking the form designer file.)</description><pubDate>Mon, 19 Apr 2010 17:59:31 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Value not updated if not lost focus</title><link>http://forum.strataframe.net/FindPost26910.aspx</link><description>Anybody?</description><pubDate>Mon, 19 Apr 2010 14:00:47 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Value not updated if not lost focus</title><link>http://forum.strataframe.net/FindPost26778.aspx</link><description>[quote][b]Trent L. Taylor (07/05/2007)[/b][hr]You have to set the controls BIndingUpdateMode to OnPropertyChanged rather than OnValidate in order to have the underlying data source updated when the value is changed rather than when the control is validated.[/quote]&lt;br&gt;
&lt;br&gt;
Hmmmm... but what if you need it to be OnValidate due to the issue discussed in Odd Textbox Behavior  (http://forum.strataframe.net/Topic13601-7-1.aspx?Highlight=onvalidation)?</description><pubDate>Thu, 08 Apr 2010 16:15:51 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Value not updated if not lost focus</title><link>http://forum.strataframe.net/FindPost9974.aspx</link><description>You have to set the controls BIndingUpdateMode to OnPropertyChanged rather than OnValidate in order to have the underlying data source updated when the value is changed rather than when the control is validated.</description><pubDate>Thu, 05 Jul 2007 09:53:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>