H
Hrvoje Voda
How to Fill a listbox with data from database?
Hrcko
Hrcko
Dmytro Lapshyn said:Hi,
What particular type of list box is it? What is the datasource (DataSet,
DataReader, etc.)?
Typically you can databind a listbox control to a DataTable instance,
specifying which column to use as the 'key' and which as the value to be
displayed.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
Hrvoje Voda said:How to Fill a listbox with data from database?
Hrcko
Hrvoje Voda said:It is a normal listBox control and I would like to fill it through
dataset.
Dmytro Lapshyn said:Hi,
What particular type of list box is it? What is the datasource (DataSet,
DataReader, etc.)?
Typically you can databind a listbox control to a DataTable instance,
specifying which column to use as the 'key' and which as the value to be
displayed.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
Hrvoje Voda said:How to Fill a listbox with data from database?
Hrcko