Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. how to display data in a listbox?

how to display data in a listbox?

Scheduled Pinned Locked Moved Database
questiondatabasetutorial
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rharzkie
    wrote on last edited by
    #1

    i have a database of lists of subjects...then in my module, i want to display all the subjects that i recorded in the listbox... how can i do it? i already connect my dataset in the connection wizard but i can't display it in the listbox.

    R 1 Reply Last reply
    0
    • R Rharzkie

      i have a database of lists of subjects...then in my module, i want to display all the subjects that i recorded in the listbox... how can i do it? i already connect my dataset in the connection wizard but i can't display it in the listbox.

      R Offline
      R Offline
      Rocky
      wrote on last edited by
      #2

      if your simply displayin the values of a single column of a DataTable then just make a new bindingSource and fill it with the tableAdapter. Give the bindingSource Name as its DataSource and specify its valueColumn n Display Values from the properties pane if you like. Thanks

      Rocky You can't climb up a ladder with your hands in your pockets.

      R 1 Reply Last reply
      0
      • R Rocky

        if your simply displayin the values of a single column of a DataTable then just make a new bindingSource and fill it with the tableAdapter. Give the bindingSource Name as its DataSource and specify its valueColumn n Display Values from the properties pane if you like. Thanks

        Rocky You can't climb up a ladder with your hands in your pockets.

        R Offline
        R Offline
        Rharzkie
        wrote on last edited by
        #3

        How can i do it? will i make codes for that or will i just set the databindings in the properties of the listbbox?

        R 1 Reply Last reply
        0
        • R Rharzkie

          How can i do it? will i make codes for that or will i just set the databindings in the properties of the listbbox?

          R Offline
          R Offline
          Rocky
          wrote on last edited by
          #4

          ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmclictl/html/dfd7f081-8bea-4a41-86a3-86a1934828ef.htm

          chk this address in your MSDN 2005. and whenever u ask questions such as this always specify your application like C# 1.1,2.0, SQL Server 2000 or whatever

          Rocky You can't climb up a ladder with your hands in your pockets.

          R 1 Reply Last reply
          0
          • R Rocky

            ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmclictl/html/dfd7f081-8bea-4a41-86a3-86a1934828ef.htm

            chk this address in your MSDN 2005. and whenever u ask questions such as this always specify your application like C# 1.1,2.0, SQL Server 2000 or whatever

            Rocky You can't climb up a ladder with your hands in your pockets.

            R Offline
            R Offline
            Rharzkie
            wrote on last edited by
            #5

            my MSDN library is not installed...i just borrow the cd can you just tell me the process, pleassssse!:)

            R R 2 Replies Last reply
            0
            • R Rharzkie

              my MSDN library is not installed...i just borrow the cd can you just tell me the process, pleassssse!:)

              R Offline
              R Offline
              Rharzkie
              wrote on last edited by
              #6

              do you have yahoo messenger? so we can easily talk about it, this is mine: pinkaliciouz_rharz@yahoo.com

              1 Reply Last reply
              0
              • R Rharzkie

                my MSDN library is not installed...i just borrow the cd can you just tell me the process, pleassssse!:)

                R Offline
                R Offline
                Rocky
                wrote on last edited by
                #7

                For Heaven's Sake! just open the MSDN.com over the web. go to the index and type ListBox COntrol. There will be a section of data binding. Read it and Follow the instrunctions. These forms are meant to benefit all the people, Thats the way we play the game. You can find a few articles on CP as well. Learn to LURk Before you leap. Search this same topic in this fforum as well. I'm sure you'll find something useful\ Thanks

                Rocky You can't climb up a ladder with your hands in your pockets.

                R 1 Reply Last reply
                0
                • R Rocky

                  For Heaven's Sake! just open the MSDN.com over the web. go to the index and type ListBox COntrol. There will be a section of data binding. Read it and Follow the instrunctions. These forms are meant to benefit all the people, Thats the way we play the game. You can find a few articles on CP as well. Learn to LURk Before you leap. Search this same topic in this fforum as well. I'm sure you'll find something useful\ Thanks

                  Rocky You can't climb up a ladder with your hands in your pockets.

                  R Offline
                  R Offline
                  Rharzkie
                  wrote on last edited by
                  #8

                  OK THANKS...

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups