Results 1 to 1 of 1

Thread: Two Datagrid data transfer

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    12

    Two Datagrid data transfer

    I have two disconnected datagrids (DG1 and DG2). DG1 has col1 and col2, DG2 has col1, col2, col3, col4.

    I have to allow the user to edit DG1 first, then add those edits to DG2 (col1 and col2) and then allow the user to edit DG2. example, say the user entered a new row in DG1, i have to add the same row in DG2 (col1 and col2) with col3 and col4 as nulls.

    I tried DG2.Merge(DG1), but it does not work. both have the same schemas but different queries.

    Dim dssource As New DataSet()
    dssource = DG1.DataSource

    Dim dstarget As New DataSet()
    dstarget = DG2.DataSource

    dstarget.Merge(dssource)

    is this wrong?
    Last edited by NickPra; Oct 3rd, 2002 at 12:59 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width