Hi learningvb8,
Based on my understanding, the data is loaded from a database and a DataTable is filled by a DataTableAdapter in your program. You used designer to add the data source and all the files related to database are generated automatically. Please feel free to tell me if I misunderstand you.
If my understanding is correct, the root cause is mostly the data base configuration. Please check the connection strings. You can find this configuration in the app.config file in the project. The xml node is configuration/connectionStrings/add, the attribute connectionString stores the connection string. The string often seems like this: "Data Source=localhost;Initial Catalog=MyDB;Integrated Security=True". In the string, you can see that the data source is localhost. So if you move this program to another machine, it would not find the database, the database is in the machine where you developed the program. To solve this problem, you need to change “localhost�to the name or network address of the instance of SQL Server in your developing machine.
You can get more help from
http://msdn.microsoft.com/en-us/library/ms254978.aspx
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring.aspx.
Let me know if this helps.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.