G
Guest
Why am I getting an error when I passed by ref a dataset to a new form? The
message reads "cannot convert from 'ref Paimport.unixAccount' to 'ref
System.Data.DataSet'.
Paimport is the name of the form where the dataset UnixAccount is created.
I created the dataset using the designer tool and not by code. So it's like
a type or class which I then declare an instance of it :
UnixAccoutns dsAccounts = new UnixAccoutns ();
I pass to a new form in the construction as follow:
filterDlg = new frmFilter(ref dsAccounts, local, this);
How can I pass the entire dataset with all the datatables and the data in it
so I don't have to pass one table at a time? Thank you.
message reads "cannot convert from 'ref Paimport.unixAccount' to 'ref
System.Data.DataSet'.
Paimport is the name of the form where the dataset UnixAccount is created.
I created the dataset using the designer tool and not by code. So it's like
a type or class which I then declare an instance of it :
UnixAccoutns dsAccounts = new UnixAccoutns ();
I pass to a new form in the construction as follow:
filterDlg = new frmFilter(ref dsAccounts, local, this);
How can I pass the entire dataset with all the datatables and the data in it
so I don't have to pass one table at a time? Thank you.