Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to : fast fill a combobox with data from database

Loading...

Sign in or sign up now!
21,311
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 6, 2009

See how to fill a combobox with data from database.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ignatandrei1970)

  • 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 Thanks!

  • Just declare it ?!

    I do not understand the question....

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • 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...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more