Article View: borland.public.cppbuilder.database.multi-tier
Article #408clientdataset's afteropen event can not fired
From: lcl
Date: Mon, 10 Jun 2002 03:26
Date: Mon, 10 Jun 2002 03:26
27 lines
1944 bytes
1944 bytes
Hi , I have create a clientdataset that does not use provider , because I only want to use it as a swapper container as my data , I want to insert my owned data to the clientdataset when it has been opened , so I have write some code in the afteropen event : clientdataset1->Append() ; //set value clientdataset1->Post() ; clientdataset1->MergeUpdateLog() ; in the other form I open the clientdataset : if (clientdataset1->Active) clientdataset1->Close() ; clientdataset1->Open() ; the dbgrid will dynamic bound the dataset's field , so if the dataset has not been opened , I will not see the field caption in the dbgrid , but when I open the clientdataset , I can see the caption , so maybe I am sure that the clientdataset has been opened. Why this happened? maybe I have another choice to do it ? I do not want to write another function to insert my data , the prefer place the dataset's event . Thank you. lcl
Technical Details
Message-ID:
<3d0419fd_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,452dcd39276adb0a,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2002-06-09 20:22:11 PST Reply-To: "lcl" <lcl@ricobest.com> From: "lcl" <lcl@ricobest.com> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: clientdataset's afteropen event can not fired Date: Mon, 10 Jun 2002 11:26:55 +0800 Lines: 28 Organization: ricobest MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 61.152.182.210 Message-ID: <3d0419fd_2@dnews> X-Trace: dnews 1023678973 61.152.182.210 (9 Jun 2002 20:16:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews