CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Aug 2012
    Posts
    7

    [RESOLVED] Passing data between two DataTables

    Hia,

    I'm looking to move data between two DataTables (with a twist) & am looking for some guidance......

    I have a WinForms application that works as follows :-
    - Form_A is the main form & has graphing elements on it
    - Form_A has two DataTables (a RawDT & an AnalysisDT)
    - Form_A calls Form_B
    - Form_B is used to import data from flat files (.csv, etc.)
    - Form_B has two DataTables (an OriginalDT & a FilteredDT)
    - Form_B allows the user to select just a single column from the original flat file to import.

    The idea behind the application is that the user can import a single column of numerical data, from a flat file. Analysis is then performed on the data, the results of which is then presented back to the user graphically.

    I have the above working however I am struggling with passing the data from Form_B.FilteredDT to Form_A.RawDT. I've tried CopyToDataTable() without success as well as variations on :-
    frm_Main ImportTo = new frm_Main();
    ImportTo.RawDataGrid = FilteredDT;

    Any suggestions / pointers would be most helpful.

    Thanks all.
    Last edited by charlie20; December 24th, 2012 at 12:06 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

Featured