Access DB column into List Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi guys,

Is there any way to access the full column form a table into a List
Box..If you have some samle codes ..plz forward them..thats very useful for
me to refer..

Thanks in Advance,
Aravind.
 
Aravind,

You might want to look in the documentation at the System.Data.OleDb
namespace, since that is what you are going to typically use to access an
Access database.

Once you have that, you can easily select the data (single column) from
the table into a DataSet, and bind that to the ListBox (through the
DataSource and DataMember properties, with the DataSource property set to
the table, and the DataMember set to the column name).

Hope this helps.
 
Thank you Nicholas Now i got that acccess..thanks.

Nicholas Paldino said:
Aravind,

You might want to look in the documentation at the System.Data.OleDb
namespace, since that is what you are going to typically use to access an
Access database.

Once you have that, you can easily select the data (single column) from
the table into a DataSet, and bind that to the ListBox (through the
DataSource and DataMember properties, with the DataSource property set to
the table, and the DataMember set to the column name).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Aravind said:
Hi guys,

Is there any way to access the full column form a table into a List
Box..If you have some samle codes ..plz forward them..thats very useful
for
me to refer..

Thanks in Advance,
Aravind.
 
Back
Top