Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

DataGridView not saving data to .sdf database because it's bound to the Debug Database

$
0
0

Hello Everyone:

In short, how do I change my binding source or table Adapter to connect with my main .sdf database file, instead of the .sdf database file in my \bin\Debug folder?

I've checked my app.config file, and the connection string is as follows:

connectionString="Data Source = |DataDirectory|\ABC_Shift.sdf"

But - when I make changes to the data in the datagridview, the changes are not saved to the main ABC_Shift.sdf

Any help would be appreciated

Thanks - Pavilion


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>