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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Listbox

Listbox

Scheduled Pinned Locked Moved C#
database
3 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    Dirk Higbee
    wrote on last edited by
    #1

    I have a Listbox that show items from a database. I have a button that I want to use to show details of an item selected. Right now I click the button and a new window opens with all the records in a DataGridview, but it defaults to the top of the list. I want it to go directly to that record when I click the button instead of having to scroll to find it. Could someone point me in the direction I need to go to find the method I need to use. Not asking for a ride, just directions.

    My favorite bits make quarters.

    OriginalGriffO 1 Reply Last reply
    0
    • D Dirk Higbee

      I have a Listbox that show items from a database. I have a button that I want to use to show details of an item selected. Right now I click the button and a new window opens with all the records in a DataGridview, but it defaults to the top of the list. I want it to go directly to that record when I click the button instead of having to scroll to find it. Could someone point me in the direction I need to go to find the method I need to use. Not asking for a ride, just directions.

      My favorite bits make quarters.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Please don't post the same question in multiple places, with less info. Pick one and stick with it, or you duplicate work and waste effort. See teh answer to this as a QA question...selection in dataGridView on Form2 shows the same as listBox1 on Form1 when showDetails button on Form1 is clicked.[^]

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      D 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Please don't post the same question in multiple places, with less info. Pick one and stick with it, or you duplicate work and waste effort. See teh answer to this as a QA question...selection in dataGridView on Form2 shows the same as listBox1 on Form1 when showDetails button on Form1 is clicked.[^]

        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

        D Offline
        D Offline
        Dirk Higbee
        wrote on last edited by
        #3

        Sorry, the Q&A where I was, was not easily discerned from the C# forum. I reposted the second one because the first one I felt did not have enough info in it. Navigation in some places here can be kind of confusing. It was easier when I first signed up here.

        My favorite bits make quarters.

        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