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. DataGrid BUG? I'm a newbie

DataGrid BUG? I'm a newbie

Scheduled Pinned Locked Moved Visual Basic
csharphelpquestionannouncement
3 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.
  • M Offline
    M Offline
    Mike Murphy
    wrote on last edited by
    #1

    Hi...I have constructed several Master-Detail forms using the data wizard in vb.net. Most of the time, but not always, a user will be entering data into the datagrid and an extra row appears, like magic, below the row they are working on and it will have a duplicate of the information in the row above it. But the data is not really there! Anyone know what this is ????? Also they have to do an 'update' on each row. Is there anyway for them to be able to enter two rows of data and then do the update? Also I end up with many concurrency errors and foriegn key problems...any advice....Thanks in advance. Thanks, Mike

    D 1 Reply Last reply
    0
    • M Mike Murphy

      Hi...I have constructed several Master-Detail forms using the data wizard in vb.net. Most of the time, but not always, a user will be entering data into the datagrid and an extra row appears, like magic, below the row they are working on and it will have a duplicate of the information in the row above it. But the data is not really there! Anyone know what this is ????? Also they have to do an 'update' on each row. Is there anyway for them to be able to enter two rows of data and then do the update? Also I end up with many concurrency errors and foriegn key problems...any advice....Thanks in advance. Thanks, Mike

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      It's hard to tell without any code, but maybe you are having a problem known as "cross product join", where your join condition on the master/detail query is flawed and makes the SQL Server returns multiple combinations of results. As a sample, imagine two tables where they must be joined by the fields A and B. If, in your join condition, you forget to specify one of them, this can lead this kind of problem. Another situation is forgeting to specify a join condition for a table used on a query. I see dumb people

      M 1 Reply Last reply
      0
      • D Daniel Turini

        It's hard to tell without any code, but maybe you are having a problem known as "cross product join", where your join condition on the master/detail query is flawed and makes the SQL Server returns multiple combinations of results. As a sample, imagine two tables where they must be joined by the fields A and B. If, in your join condition, you forget to specify one of them, this can lead this kind of problem. Another situation is forgeting to specify a join condition for a table used on a query. I see dumb people

        M Offline
        M Offline
        Mike Murphy
        wrote on last edited by
        #3

        Hi Daniel...Thanks for the reply to my post. I can either put the code in a reply or email it to you if you're curious - I ask because it is a couple thousand lines of code generated by the data wizard. If you had a suggestion of what specifically to look for, I could copy and paste it to a reply. On another note, do you know if you can 'update' (uses a merge I believe) more than one row at a time? Again thanks. Mike Thanks, Mike

        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