Article View: free.it.visual-basic
Article #101Re: Associare DBGRID a DATACONTROL da codice.
From: borlis
Date: Sat, 14 Apr 2007 16:34
Date: Sat, 14 Apr 2007 16:34
24 lines
2023 bytes
2023 bytes
"TG" <info@tecnogarden.net> ha scritto nel messaggio
news:45f7a7dd$0$4797$4fafbaef@reader4.news.tin.it...
> Ho creato un form che mi carica da codice varie Dbgrid e vari DataControl.
> Vorrei associare il DataSource di ogni Dbgrid al suo DataControl, ma mi da
> errore (set dbgrid("n").DataSource = DataControl("n").name).
>
> ...mi pare o non c� verso di fare una cosa del genere da codice?
> Esistono altre possibilit�? magari utilizzando altre griglie?...
>
> Asp soluzioni, grazie.
> TG.
>
>
Il DataSource della datagrid si aspetta un oggetto di tipo Adodc o
DataEnvironment
Non dovresti mettere DataControl("n").name perch� ritorna una stringa
set dbgrid("n").DataSource = DataControl("n")
in questo modo dovrebbe funziona, anche se non mi sembra il modo giusto di
procedere
ciao..
Technical Details
Message-ID:
<462102b6$0$20804$5fc30a8@news.tiscali.it>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!feeder2.ecngs.de!ecngs!feeder.ecngs.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsserver.news.garr.it!newsfeed.cineca.it!draco.tiscalinet.it!news-f2.tiscali.it!not-for-mailReferences:
<45f7a7dd$0$4797$4fafbaef@reader4.news.tin.it>Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,8c8f752fd9dbe0a1 X-Google-Attributes: gidf94ee,public X-Google-Language: ITALIAN,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!feeder2.ecngs.de!ecngs!feeder.ecngs.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsserver.news.garr.it!newsfeed.cineca.it!draco.tiscalinet.it!news-f2.tiscali.it!not-for-mail From: "borlis" <pippo@tiscali.it> Newsgroups: free.it.visual-basic References: <45f7a7dd$0$4797$4fafbaef@reader4.news.tin.it> Subject: Re: Associare DBGRID a DATACONTROL da codice. Date: Sat, 14 Apr 2007 18:34:59 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Antivirus: avast! (VPS 000733-0, 11/04/2007), Outbound message X-Antivirus-Status: Clean Lines: 26 Message-ID: <462102b6$0$20804$5fc30a8@news.tiscali.it> Organization: Tiscali SpA NNTP-Posting-Host: 84.220.240.212 X-Trace: 1176568503 news.tiscali.it 20804 84.220.240.212:1072 X-Complaints-To: abuse@tiscali.it