Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect DGV Binding in App to New Installed Data Dir Location for db

Status
Not open for further replies.

faxpay

Programmer
Nov 30, 2004
119
US


I have a DataGridView that is bound to a db. When I package the App the db is installed in a subdirectory of the App directory. The user is allowed to install the App in the default dir or a dir of his choosing.

When I install the App and start it I get an err saying the db cannot be located.
Is there a way to redirect that binding to the new db location with code? Somehow use Application.StartupPath() re-direct that binding? Can this even be done?

Tom
tnfaxpay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top