M
MajorTom
Hello everybody,
I need help on how to use the same datase in two different form, this is the
scenario:
at the first form I load a big dataset (ds1) for short, but I not want to
load it again at the second form
at some point I use a second form
Form f = new FormX();
f.ShowDialog();
at the f form I need to use ds1, and I have the same ds1 in the f form
I tried assigning public access for f.ds1
and do like this:
Form f = new FormX();
f.ds1 = this.ds1;
f.ShowDialog();
also I tried passing it at the constructor like this:
Form f = new FormX(ds1);
f.ShowDialog();
all the time the dataset ds1 at the second form have no rows
the only way I get the record is using the merge method this way
Form f = new FormX();
f.ds1.Merge(this.ds1);
f.ShowDialog();
but it take the time for filling the dataset f.ds1 again
the solution that I need is to use the same dataset or at least not take the
time for load it again
Thanks for your help
MajorTom
I need help on how to use the same datase in two different form, this is the
scenario:
at the first form I load a big dataset (ds1) for short, but I not want to
load it again at the second form
at some point I use a second form
Form f = new FormX();
f.ShowDialog();
at the f form I need to use ds1, and I have the same ds1 in the f form
I tried assigning public access for f.ds1
and do like this:
Form f = new FormX();
f.ds1 = this.ds1;
f.ShowDialog();
also I tried passing it at the constructor like this:
Form f = new FormX(ds1);
f.ShowDialog();
all the time the dataset ds1 at the second form have no rows
the only way I get the record is using the merge method this way
Form f = new FormX();
f.ds1.Merge(this.ds1);
f.ShowDialog();
but it take the time for filling the dataset f.ds1 again
the solution that I need is to use the same dataset or at least not take the
time for load it again
Thanks for your help
MajorTom