|
-
Nov 29th, 2009, 05:16 PM
#1
Thread Starter
Lively Member
Fill combobox with data from MySQL tables
I have a combobox in my form which I want to fill with data from one column in an SQL database. Any idea on how I do this?
Kind Regards
-
Nov 29th, 2009, 07:29 PM
#2
Re: Fill combobox with data from MySQL tables
Query the database and populate a DataTable, then bind the DataTable to the ComboBox using its DataSource and DisplayMember properties. If you're not sure how to query the database then follow the Database FAQ link in my signature for information.
Note that there is a MySQL-specific ADO.NET provider available for download from the MySQL web site.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|