Hi,

I have a beginner's doubt, maybe somebody can give a quick help.
I'm assigning a datatable to a datagrid and then I'm trying to copy a
datatable into another with the following method:

datatable_1 = datatable_2;
datagridview1.source=datatable_1;

Then when I try to modify datatable_2 in a background thread, a
misterioous exception jumps ...

Then trying another options I tried the following code and it works
fine while I'm modifying datatable_2 in another thread:

datatable_1 = datatable_2.copy();
datagridview1.source=datatable_1;

Can somebody explain to me why? Maybe is a very stupid question, but
I'm just starting with this.
Isn't it possible to assign one datatable into another?

Thanks in advance
Nacho

Reply via email to