CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Bind two DataTables to a third DataTable

  1. #1
    Join Date
    Aug 2016
    Posts
    1

    Bind two DataTables to a third DataTable

    Hi,

    I'd like to know if it's possible to bind two DataTables to an third DataTable?

    Or maybe there is an other way to solve my problem:

    I have two DataTables in a DataSet an I have to join them an show them in a DataGridView.
    But it is important, that all changes will be notified to the two DataTables in the DataSet.
    So i cant simple merge the two tables to a third one.


    The only solution which I found is to bind a new third DataTable two the DataGridView and handle the Changes manuel on a CellValueChanged-Event.
    But i cant belive, that this is the only solution to handle this issue.

  2. #2
    Join Date
    Aug 2016
    Posts
    23

    Re: Bind two DataTables to a third DataTable

    You haven't mentioned if you are using oracle or mysql?

  3. #3
    Join Date
    Sep 2016
    Posts
    1

    Re: Bind two DataTables to a third DataTable

    That is also my question ,please help us.
    آموزش C#

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,268

    Re: Bind two DataTables to a third DataTable

    Perhaps DataSet.Merge would help :

    https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)