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. Web Development
  3. ASP.NET
  4. Load Dataset first row value in Listbox

Load Dataset first row value in Listbox

Scheduled Pinned Locked Moved ASP.NET
5 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.
  • J Offline
    J Offline
    jebin k
    wrote on last edited by
    #1

    Hi, I need to load the Dataset's first row value in a List box. Can any one say the syntax.

    J 1 Reply Last reply
    0
    • J jebin k

      Hi, I need to load the Dataset's first row value in a List box. Can any one say the syntax.

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      Do You want bind the first Column value to the ListBox or the First Row Value? Am confussed...

      Regards
       - J O N -


      J 1 Reply Last reply
      0
      • J John ph

        Do You want bind the first Column value to the ListBox or the First Row Value? Am confussed...

        Regards
         - J O N -


        J Offline
        J Offline
        jebin k
        wrote on last edited by
        #3

        First row value.

        J 1 Reply Last reply
        0
        • J jebin k

          First row value.

          J Offline
          J Offline
          John ph
          wrote on last edited by
          #4

          ListBox.Items.Add(New ListItem((ds.Tables(0).Rows(0).Item("ColName").ToString), (ds.Tables(0).Rows(0).Item("ColName").ToString)))

          Regards
           - J O N -


          J 1 Reply Last reply
          0
          • J John ph

            ListBox.Items.Add(New ListItem((ds.Tables(0).Rows(0).Item("ColName").ToString), (ds.Tables(0).Rows(0).Item("ColName").ToString)))

            Regards
             - J O N -


            J Offline
            J Offline
            jebin k
            wrote on last edited by
            #5

            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