Article View: borland.public.jbuilder.java.swing
Article #10415Re: why ListControl and JdbList are empty after setDataSet()
From: Shaomei Ruan
Date: Fri, 24 Sep 1999 00:00
Date: Fri, 24 Sep 1999 00:00
31 lines
1543 bytes
1543 bytes
Thank you.
I got the ListControl worked.
Shaomei
Randy Strobel wrote:
>
> You could try reversing the order of the method calls. Call setColumnName()
> first and then setDataSet(). This how we've been doing it and have had no
> troubles. If this doesn't solve it....make sure your dataset has data.
> Make sure it is opened and the correct query has been executed.
>
> Shaomei Ruan wrote:
>
> > What's wrong with the following code?
> >
> > myListControl.setDataSet(queryDataSet);
> > myListControl.setColumnName("column1");
> >
> > myJdbList.setDataSet(queryDataSet);
> > myJdbList.setColumnName("column1");
> >
> > These codes do not populate the data into the ListControl and JdbList as
> > I expected. Did I miss anything? Is this a bug? How do I get around it
> > without having to retrieve each record from the dataset myself and then
> > set item to JdbList?
> >
> > Thanks
> >
> > Shaomei
Technical Details
Message-ID:
<37EBBBDA.53E26CBA@geocities.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37E1B88F.A081BA1C@geocities.com> <37E7A190.6D82052A@siscom.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e736ecc5014f464f X-Google-Attributes: gid111d45,public From: Shaomei Ruan <sruan@geocities.com> Subject: Re: why ListControl and JdbList are empty after setDataSet() Date: 1999/09/24 Message-ID: <37EBBBDA.53E26CBA@geocities.com> X-Deja-AN: 529140352 Content-Transfer-Encoding: 7bit References: <37E1B88F.A081BA1C@geocities.com> <37E7A190.6D82052A@siscom.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: @Home Networks Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing