﻿<?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 do I force a refresh of form controls</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 13:57:24 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I force a refresh of form controls</title><link>http://forum.strataframe.net/FindPost19711.aspx</link><description>Hi All.&lt;/P&gt;&lt;P&gt;This really should be obvious, but its not. I have a grid on a form and when i change rows, I want the text boxes and other form controls to stay synchronized. Here is the code:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Synchronize the upper portion in the form when the user&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// clicks on a new row in the grid&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (e.RowIndex &amp;gt; -1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;boNotes.SeekToPrimaryKey(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Convert&lt;/FONT&gt;&lt;FONT size=2&gt;.ToInt32(grdViewNoteLog.Rows[e.RowIndex].Cells[&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"note_pk"&lt;/FONT&gt;&lt;FONT size=2&gt;].Value.ToString()));&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.Refresh();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;The Notes BO is on the corrrect row, because if I click the edit button in the form, the controls all get updated with the correct values. &lt;/P&gt;&lt;P&gt;What do I need to do to handle this programmatically?&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Thu, 25 Sep 2008 13:30:32 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: How do I force a refresh of form controls</title><link>http://forum.strataframe.net/FindPost19721.aspx</link><description>Yup...Teddy is on the job :)</description><pubDate>Thu, 25 Sep 2008 13:30:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I force a refresh of form controls</title><link>http://forum.strataframe.net/FindPost19713.aspx</link><description>[quote][b]Teddy Jensen (09/25/2008)[/b][hr]Hi Marcia,&lt;P&gt;I think you shold use navigate instead of seek on your bo. This will update any bound controls.&lt;/P&gt;&lt;P&gt;[/quote]&lt;P&gt;That was it - thanks a million. I knew it had to be something simple :)</description><pubDate>Thu, 25 Sep 2008 12:03:33 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: How do I force a refresh of form controls</title><link>http://forum.strataframe.net/FindPost19712.aspx</link><description>Hi Marcia,&lt;/P&gt;&lt;P&gt;I think you shold use navigate instead of seek on your bo. This will update any bound controls.&lt;/P&gt;&lt;P&gt;/Teddy</description><pubDate>Thu, 25 Sep 2008 12:00:06 GMT</pubDate><dc:creator>Teddy Jensen</dc:creator></item></channel></rss>