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. General Programming
  3. Visual Basic
  4. DataSet - Starting from scratch

DataSet - Starting from scratch

Scheduled Pinned Locked Moved Visual Basic
databasewpfwcfquestionannouncement
1 Posts 1 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.
  • Q Offline
    Q Offline
    Quecumber256
    wrote on last edited by
    #1

    Hi Everyone: I have created a data entry form that will allow the user to enter in new data. The form has a binding navigator control, a binding source control, four label controls, four text box controls and one command button. The first objective I’m trying to accomplish is the scenario where the dataset is empty, and I want to add new information to the dataset. When I open the form the binding navigator control’s move first, move previous, move next and move last buttons are disabled. Since the dataset is empty this is an expected result. The only enabled buttons on the binding navigator control are; Add New, Save to dataset and Update the database. Now I am going to add a record. I type in the following record into the following text boxes: Binding ID - blank Ordinal – 1 Code – TST1 Name – Record 1 I click on the save to dataset button on the binding navigator control and the binding navigator position item on the navigator control says one, as well as the binding navigator count item. In other words it says I have 1 of 1 record in the dataset. At this time I expect the move first, move previous, move next and move last buttons to be enabled. They still remain disabled. Okay, maybe the navigation buttons need more than one record in the dataset. So I add this one: Binding ID - Ordinal – 2 Code – TST2 Name – Record 2 I click on the save to dataset button and I now have 1 of 2 records and the move next and move last buttons on the binding navigator control are enabled. If I click on either the Move Last or Move Next button on the Move Previous and Move Last buttons are enabled and the Move Next and Move Last Buttons are disabled. Okay, now I’m going to check to see if both the records are present in the dataset. So I click on the Move Previous button and I get this: Binding ID – 1 Ordinal – 2 Code - Name - If I press the move next button I get this: Binding ID – 2 Ordinal – 2 Code – TST2 Name – Record 2 I should have both records in the dataset not just the last one. I also think the move next and move last buttons should be enabled when I added the first record into the dataset. Does anyone know why this is happening? Thanks, Quecumber256

    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