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

C# - Populate a ComboBox with data from a DataTable

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
15,354
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 10, 2010

How to iterate over every row in a DataTable and add the values to a ComboBox control.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (BablioBr)

  • brother one question, what is cs in the minute 2:24?

  • @seogery it is a reference to the sqlConnection object right above it.

  • Many thankx for the video tutorial as usual great stuff from u. One question i have thogh the intelliscence in c# is not bringing up the "Rows" and as result i cant actually populate combo box Message i get is an errror message

    " 'System.Data.DataSet' does not contain a definition for 'Rows' and no extension method 'Rows' accepting a first argument of type 'System.Data.DataSet' could be found (are you missing a using directive or an assembly reference?) "

  • @oj4y Sounds like your prolem is as simple as adding "using System.Data;" to the top of your program. Perhaps you are using VS 2008? VS 2010 already adds System.Data namespace to the program. Check out the beginning of my video and how "using System.Data;" is already there. Please let me know if this solves your problem. Thank for watching!

see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • Very helpful, thank you!

  • Hi,

    excellent stuff you have put on Youtube. could you please share your mail ID? if you dont' want public could you please share me with at raisudhakar1980@gmail.com.

    thank you so much!

  • thank you! :)

  • perfect video thanks

  • Nailing right on the head. Awesome videos. And I like it when you explain while coding. Helps guys like me to understand what,s going on even without having much prior knowledge of csharp.

  • thats gud but i want to know that what we should do when we want to search a particular entry from database

  • My saviour! thx you so much!

  • thank you! very usefull!

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