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. Web Development
  3. How to do a movenext into your data???

How to do a movenext into your data???

Scheduled Pinned Locked Moved Web Development
questiontutorial
3 Posts 3 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.
  • M Offline
    M Offline
    meki_2118
    wrote on last edited by
    #1

    Hi, How can I create a move next command in my dataset??? Dim DS As New DataSet TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME") This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one. can you give me some solution? Thanks a lot in advance.

    S A 2 Replies Last reply
    0
    • M meki_2118

      Hi, How can I create a move next command in my dataset??? Dim DS As New DataSet TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME") This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one. can you give me some solution? Thanks a lot in advance.

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi Meki, what you are trying to implement is a enumerator. You could use the enumerator of the DataRowCollection. // get the enumerator IEnumerator oEnum = DS.Tables[0].Rows.GetEnumerator(); // use it while(oEnum.MoveNext()) { // get current row DataRow rowCurrent = oEnum.Current as DataRow; // get the value Textbox1.Text = rowCurrent.Item["ITEM_NAME"].ToString(); } I hope this helps you. Regards Sebastian

      It's not a bug, it's a feature! Me in Softwareland.

      1 Reply Last reply
      0
      • M meki_2118

        Hi, How can I create a move next command in my dataset??? Dim DS As New DataSet TextBox1.Text = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() + 1).Item("ITEM_NAME") This code that I've used just give a move last command and i can't figure out how to the move next so that I can look for the items in my data base one-by-one. can you give me some solution? Thanks a lot in advance.

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Don't keep posting to every forum you can find, instead read the anserws you have been given...................

        Bob Ashfield Consultants Ltd

        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