I use typed datasets in my solution (they are defined in an other project, I have only references). I want to change the Connection String at runtime. I have tried the following, but didnt work:
MyDatasetTableAdapters.MyDataTableAdapter adapter = new MyDataTableAdapter();
adapter.Connection=MySQLConnection;
same with
adapter.Connection.ConnectionString = MyConnectionString;
There is no definition for Connection.
Is there an easy way to change the connection?
Thank you!