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. Database & SysAdmin
  3. Database
  4. Compare datarows

Compare datarows

Scheduled Pinned Locked Moved Database
4 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.
  • P Offline
    P Offline
    pedros73 0
    wrote on last edited by
    #1

    Is it possible to compare two datarows taken from two separate datasets as a whole, or do you have to compare the value of each column in the row. Please advise

    J 1 Reply Last reply
    0
    • P pedros73 0

      Is it possible to compare two datarows taken from two separate datasets as a whole, or do you have to compare the value of each column in the row. Please advise

      J Offline
      J Offline
      Just Greeky Creek
      wrote on last edited by
      #2

      u can do ,if the table schemes r the same.

      P 1 Reply Last reply
      0
      • J Just Greeky Creek

        u can do ,if the table schemes r the same.

        P Offline
        P Offline
        pedros73 0
        wrote on last edited by
        #3

        Just Greeky Creek wrote: u can do ,if the table schemes r the same. How is this done?

        J 1 Reply Last reply
        0
        • P pedros73 0

          Just Greeky Creek wrote: u can do ,if the table schemes r the same. How is this done?

          J Offline
          J Offline
          Just Greeky Creek
          wrote on last edited by
          #4

          Dim greeky As Boolean = True Dim xDs1 As New DataSet Dim xDs2 As New DataSet For i As Short = 0 To xDs2.Tables(1).Rows.Count - 1 greeky = greeky And xDs1.Tables(0).Rows.Contains(xDs2.Tables(1).Rows(i)) Next If greeky Then MessageBox.Show("xDs1.Tables(0) contains all rows of xDs2.Tables(1)") End If

          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