﻿<?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 » Business Objects and Data Access (How do I?)  » Refreshing Grids</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 02:35:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Refreshing Grids</title><link>http://forum.strataframe.net/FindPost11960.aspx</link><description>I'm having problems refreshing data on my grid (Infragistics) when I do the following.&amp;nbsp; (I don't normally do this but I have a weird situation and this is the only way I can solve it)&lt;/P&gt;&lt;P&gt;I am filling two business objects when I first load a form.&amp;nbsp; I save off these two BO's into variables. Due to database design I have to physically save data during the editing session.&amp;nbsp; When I click on the 'Undo' button, I refill the business objects using the saved values (I am using the CopyDateFrom method)&lt;/P&gt;&lt;P&gt;Everything is fine however the grid doesn't reflect the changes.&amp;nbsp; Any suggestions on how to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Mon, 15 Oct 2007 09:43:02 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Refreshing Grids</title><link>http://forum.strataframe.net/FindPost11981.aspx</link><description>Then just use that new BBS like normal and call your ResetDataSource() method after you're done with the Undo().</description><pubDate>Mon, 15 Oct 2007 09:43:02 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Refreshing Grids</title><link>http://forum.strataframe.net/FindPost11980.aspx</link><description>Are you using a BusinessBindingSource?&amp;nbsp; If so, then your best bet will be to create a new class that inherits from BBS for use with this grid.&amp;nbsp; THe only thing you will need to do is create a method, say, ResetDataSource() that internally calls OnListChanged and passes a new ListChangedEventArgs.&amp;nbsp; You can pass Reset for the enum and -1 for the index to the ListChangedEventArgs constructor.&amp;nbsp; That event is what the grid listens to to refresh the grid.</description><pubDate>Mon, 15 Oct 2007 09:42:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Refreshing Grids</title><link>http://forum.strataframe.net/FindPost11962.aspx</link><description>Hi Tim,&lt;/P&gt;&lt;P&gt;Are you&amp;nbsp;perhaps forgetting to&amp;nbsp;reset your grid's data source, e.g. grid.DataSource = RefreshedCopyOfYourDataTable?&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Sat, 13 Oct 2007 01:52:38 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item></channel></rss>