Added: 2 years ago
From: ignatandrei1970
Views: 22,203
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (11)

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

  • Buy a microphone!

  • thanks very good code

  • thanks very good code

  • can i have your source code?

  • Excellent tutorial :)

    thx! ^^,)

  • How to filled combobox using DataReader??..

  • Just declare it ?!

    I do not understand the question....

  • and how i declare SqlConnection??

  • using system.data.sqlclient;

    Declare it near the initialization....AT top

Loading...
Alert icon
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