-
Feb 3rd, 2012, 10:44 AM
#1
Thread Starter
Fanatic Member
[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
-
Feb 3rd, 2012, 02:35 PM
#2
Addicted Member
Re: populate dt2 from dt1
-
Feb 3rd, 2012, 04:31 PM
#3
Thread Starter
Fanatic Member
Re: populate dt2 from dt1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|