How to : fast fill a combobox with data from database
Loading...
21,311
Uploader Comments (ignatandrei1970)
see all
All Comments (11)
-
Buy a microphone!
-
thanks very good code
-
thanks very good code
-
can i have your source code?
-
Excellent tutorial :)
thx! ^^,)
-
using system.data.sqlclient;
Declare it near the initialization....AT top
-
How to filled combobox using DataReader??..
Loading...
good indeed, there lot of ways to fill a combobox with sql data,
also combobox.DataSource = (DataSet,Datable,etc)
also with SqlDataReader:
cm = new SqlCommand("Select ...");
SqlDataReader dr = cm.ExecuteReader();
while(dr.Read())
{ comboBox.Items.Add(dr[0]); }
tenacious1884 2 months ago
@tenacious1884 Thanks!
ignatandrei1970 2 months ago
Just declare it ?!
I do not understand the question....
ignatandrei1970 2 years ago