Chris Moore
8/7/2002 11:29:00 PM
Very similar question:
Is it possible to use MIT's List control (as opposed to the ObjectList
control) to display multiple columns from a db query?
My code to get a single column:
lstLoads.DataSource = dr
lstLoads.DataBind()
Thanks,
Chris
"Richard Hatt" <richard.hatt@torex.com> wrote in message
news:0a4601c23bd0$073f23d0$3aef2ecf@TKMSFTNGXA09...
> You can supply a list of column names to
> olstDryer.LabelField, but you need to know what they are.
>
> You could either fetch them from the database before the
> datareader, or fill a dataset, use it to find out the
> column names, and then bind the dataset to the
> objectlist. Should not be a significant impact for a
> small table.