Article View: borland.public.delphi.database
Article #145Refresh dataset in owner form from a multiple-instance form
From: mph005
Date: Fri, 11 Aug 2006 21:40
Date: Fri, 11 Aug 2006 21:40
24 lines
2068 bytes
2068 bytes
Ok, been driving myself crazy on this one for a few days. I'm fairly new to the Delphi/Pascal language, so be kind. Here's my situation: I have a main form that has a DBGrid of Items (we'll call this Form1). On doubleclick, a new form (Form2) is opened to edit a specific record (item). There can be multiple-instances of Form2 (user can edit multiple items at once). On this new form, there is another DBGrid with some Item Prices. Again, on double-click, a new form (Form3) is created to edit the item price. Once I have finished editing my item price (on Form3), how do I access the specific instance of Form2 to call a tblPrice.Refresh? Right now I have a Form2.tblPrice.Refresh on my Form3 close. This works OK, until there is more than 1 instance of Form2 open. Then the DBGrid just stops updating. I know I need to specify the instance of the form that called the Form3, but have no idea how. Any Help? Thanks Michael
Technical Details
Message-ID:
<1155332422.237954.157230@h48g2000cwc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 115d96,397abd2ba72f6f87,start X-Google-Attributes: gid115d96,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: mph005@gmail.com Newsgroups: borland.public.delphi.database Subject: Refresh dataset in owner form from a multiple-instance form Date: 11 Aug 2006 14:40:22 -0700 Organization: http://groups.google.com Lines: 25 Message-ID: <1155332422.237954.157230@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: 192.35.232.241 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1155332427 25067 127.0.0.1 (11 Aug 2006 21:40:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 11 Aug 2006 21:40:27 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=192.35.232.241; posting-account=fhfpIg0AAAD7BE0tGBxMprYJZvFcU1LY