Results 1 to 3 of 3

Thread: [RESOLVED] populate dt2 from dt1

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Resolved [RESOLVED] populate dt2 from dt1

    Hi,
    How can I populate datatable2 (dt2) from the first datatable1 (dt1), but I do not want dt2 to be dependant of dt1.
    For example:
    I am populating dt2 from dt1. But if the data in dt1 changes, so does dt2.
    I do not want dt2 to change.
    How can I do this for dt2 please?
    Thanks

    i.e.
    datatable dt1 = ds.table[0]...
    ...

    //copy the distinct field to dt2
    DataTable dt2 = dt.DefaultView.ToTable(true, "FieldName");

    do I have to do anything with Binding context for dt2 ?

    Thanks

  2. #2
    Addicted Member
    Join Date
    Sep 2008
    Posts
    149

    Re: populate dt2 from dt1


  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Re: populate dt2 from dt1

    Thanks

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