<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Current cell in grid... stale data</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Current cell in grid... stale data</description>
  <pubDate>Sat, 16 May 2026 11:11:50 -700</pubDate>
  <lastBuildDate>Mon, 30 Jul 2007 10:14:57 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=125</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Current cell in grid... stale data : Gotcha. Most welcome! Greg </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=803#803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 30-Jul-2007 at 10:14am<br /><br /><P>Gotcha. Most welcome!</P><P>Greg</P>]]>
   </description>
   <pubDate>Mon, 30 Jul 2007 10:14:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=803#803</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data : &amp;gt;&amp;gt; That means making sure...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=799#799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=79" rel="nofollow">MichaelNiemann</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 30-Jul-2007 at 7:51am<br /><br />&gt;&gt; That means making sure your problem merits a solution of the complexity you're undertaking. &lt;&lt;<br><br>Greg, by all means. I was really just asking if the linking mechanism between the Persistence Manager -&gt; BO -&gt; UI was available &#091; asking as a newbie&#093;, for purposes such as fixing this DGV bug... or other more useful things.<br><br>Thank you for your response.<br><br>Mike<br>]]>
   </description>
   <pubDate>Mon, 30 Jul 2007 07:51:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=799#799</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data : &amp;gt;&amp;gt; As the &amp;#034;TechTip_Refreshing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=751#751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 24-Jul-2007 at 3:27pm<br /><br />&gt;&gt;<DIV>As the "TechTip_Refreshing Dependent Parents.doc" points out, figuring out which nested component to signal from which event can be difficult (which is why I went for the "repaint everything in the container" approach).<BR><BR>But wouldn't a well engineered "workaround" for the DGV bug be along the lines... for the BO that I just RejectedChanges on, repaint all DGV's that are bound to the my properties (persistent and non-persistent)??<BR>&lt;&lt;</DIV><DIV>&nbsp;</DIV><DIV>Probably much more often than not, you'll be rejecting changes not&nbsp;on a single BO, but a whole slew of them, often including different types (Employees, Order, OrderDetails, etc.)</DIV><DIV><BR>&gt;&gt;</DIV><DIV>I would hope the "subscribers / bound controls" of the UI can be determined by the BO's.</DIV><DIV>&lt;&lt;</DIV><DIV>&nbsp;</DIV><DIV>With DevForce databinding, all the bindings to a type (e.g., Employee) are collected in the Descriptors (BindingDescriptors) collection of a BindingManager. So you could tell from that which UI controls are bound to the Employee you just undid (if that's all you undid).</DIV><DIV>&nbsp;</DIV><DIV>I suppose you could write a method that iterates through all of the BindingManagers in a particular context (e.g., on a particular form), finds out what type they manage bindings for and what control or controls they manage bindings to, and then call Refresh() on the latter, but before I attempted to automate all of it I'd be sure just to step back and think about it. I'm a strong believer in keeping things as simple as possible. That means making sure your problem merits a solution of the complexity you're undertaking.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 24 Jul 2007 15:27:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=751#751</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data : DavidK,OK, so the problem is not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=604#604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=79" rel="nofollow">MichaelNiemann</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 16-Jul-2007 at 11:48am<br /><br />DavidK,<BR><BR>OK, so the problem is not the framework, but a repaint bug in DataGridView. that is good. BTW, I fixed the problem with:<BR><BR>&nbsp;&nbsp;&nbsp; private void RejectAllChanges() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (mPersMgr.HasChanges()) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mPersMgr.RejectChanges();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>mMainTabControl.Refresh();</strong>&nbsp; //added to fix DataGridView repaint bug<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show("All pending changes undone.");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show("No changes to undo.");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR><BR><BR>However, one answer leads to more questions...<BR>As the "TechTip_Refreshing Dependent Parents.doc" points out, figuring out which nested component to signal from which event can be difficult (which is why I went for the "repaint everything in the container" approach).<BR><BR>But wouldn't a well engineered "workaround" for the DGV bug be along the lines... for the BO that I just RejectedChanges on, repaint all DGV's that are bound to the my properties (persistent and non-persistent)??<BR><BR>I would hope the "subscribers / bound controls" of the UI can be determined by the BO's.<BR><BR>Mike<BR><span style="font-size:10px"><br /><br />Edited by MichaelNiemann - 24-Jul-2007 at 9:25am</span>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 11:48:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=604#604</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data : DavidK,  You must leave the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=550#550</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=79" rel="nofollow">MichaelNiemann</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 16-Jul-2007 at 6:38am<br /><br />DavidK,<DIV>&nbsp;</DIV><DIV>You must leave the cell (tab out) before saving to see the problem.</DIV><DIV>&nbsp;</DIV><DIV>It is another manifestation of the "display doesn't show up immediately". I will check out <FONT size=2>"Refreshing Dependent Parents". </FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thank you.</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 06:38:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=550#550</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data : Michael,   Yes. The fact that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=544#544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 13-Jul-2007 at 2:41pm<br /><br />Michael, <DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Yes.&nbsp; The fact that the change doesn't show up immediately is a known behavior of binding.&nbsp; Fortunately, there is a way to fix this behavior.&nbsp; Please read and study the advanced tutorial on "Refreshing Dependent Parents". </FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I couldn't reproduce your save problem.&nbsp; When I clicked on "Save All Changes".&nbsp; I got the message, "There are no changes to save".</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>If you want to get my completed solution, send me an email at <a href="mailto:davidk@ideablade.com" target="_blank">davidk@ideablade.com</A></FONT></DIV><DIV><FONT size=2>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV></DIV></FONT><span style="font-size:10px"><br /><br />Edited by IdeaBlade - 13-Jul-2007 at 2:52pm</span>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 14:41:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=544#544</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data :  Me again.When I mentioned that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=540#540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=79" rel="nofollow">MichaelNiemann</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 13-Jul-2007 at 9:32am<br /><br />Me again.<br><br>When I mentioned that "the grid is updated to the current value" in the BTW comment, I probably should have said "the grid is updated to the original value".<br><br>And now along the same lines only worse... I was executing the "Security_Role-Based Authorization" example, and the problem there is even worse. I logged on as "nancyd", and after changing the "order date" for one of the orders (and tabbing to the next cell), I "Discard all changes".<br><br>However, the data is permanently saved rather than discarded!<br><span style="font-size:10px"><br /><br />Edited by MichaelNiemann - 13-Jul-2007 at 9:33am</span>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 09:32:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=540#540</guid>
  </item> 
  <item>
   <title>Current cell in grid... stale data : Hello, I&amp;#039;m a DevForce newbie......</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=275#275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=79" rel="nofollow">MichaelNiemann</a><br /><strong>Subject:</strong> 125<br /><strong>Posted:</strong> 12-Jul-2007 at 8:41am<br /><br />Hello, I'm a DevForce newbie... so be gentle.<DIV>&nbsp;</DIV><DIV>I was working through the tutuorial (I appreciate the compile errors intended to keep me focused on the code details &lt;g&gt;)...</DIV><DIV>&nbsp;</DIV><DIV>If I change a cell in a grid, and then DiscardChanges... the changed value remains displayed in the cell, until you change focus to another cell in that grid. Is this the intended behavior of DevForce, or am I expecting way too much at this level of the tutorial?</DIV><DIV>&nbsp;</DIV><DIV>BTW, if you try to SaveChanges after the DiscardChanges... then the value in the grid _is_ updated to the current value (after the "No data to save" message, and without touching the grid). Of course, this is probably because the aborted Save continues to refresh the entire UI.</DIV><DIV>&nbsp;</DIV><DIV>Anyway, just a newbie post from someone looking at the FrameWork.</DIV><DIV>&nbsp;</DIV><DIV>Regards, Mike</DIV>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 08:41:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=125&amp;PID=275#275</guid>
  </item> 
 </channel>
</rss>