Article View: borland.public.cppbuilder.database.ado
Article #3866Re: clientdataset's afteropen event can not fired
From: lcl
Date: Mon, 10 Jun 2002 03:47
Date: Mon, 10 Jun 2002 03:47
30 lines
2240 bytes
2240 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 . ps , because I do not know how to classify this post , so I post to multiple group , sorry for it . Thank you. lcl
Technical Details
Message-ID:
<3d041eb4$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!newspump.sol.net!newsfeed.cwix.com!newsfeed.icl.net!colt.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bf25,69f96d2e4dc4f717,start X-Google-Attributes: gid10bf25,public X-Google-Thread: 10698b,69f96d2e4dc4f717,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-09 20:39:33 PST Reply-To: "lcl" <lcl@ricobest.com> From: "lcl" <lcl@ricobest.com> Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.desktop Subject: Re: clientdataset's afteropen event can not fired Date: Mon, 10 Jun 2002 11:47:02 +0800 Lines: 32 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: <3d041eb4$1_1@dnews> X-Trace: dnews 1023680180 61.152.182.210 (9 Jun 2002 20:36:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-08!supernews.com!newspump.sol.net!newsfeed.cwix.com!newsfeed.icl.net!colt.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews