G
Guest
I have a situation where I am doing the following routine
1.)Loading DataTable with DataAdapter
2.)Binding Controls to DataTable
3.)Closing/Disposing of Connection and DataAdapters
4.)Flushing Database
5.)Reloading DataTable with DataAdapter
6.)Re-Binding Controls
I run into my problem on step 6. If I try to Re-Bind the controls a second
time I get and Error 5 Argument Exception. If I dont try to Re-Bind, the
data is no longer bound to my form. I very clearly have a loaded dataset, but
when I push my record navigation buttons the data never changes. Do I lose
my databindings when I close the Connection? The DataAdapter? And if so, how
do I go about rebinding my form?
Thanks!
Mike
1.)Loading DataTable with DataAdapter
2.)Binding Controls to DataTable
3.)Closing/Disposing of Connection and DataAdapters
4.)Flushing Database
5.)Reloading DataTable with DataAdapter
6.)Re-Binding Controls
I run into my problem on step 6. If I try to Re-Bind the controls a second
time I get and Error 5 Argument Exception. If I dont try to Re-Bind, the
data is no longer bound to my form. I very clearly have a loaded dataset, but
when I push my record navigation buttons the data never changes. Do I lose
my databindings when I close the Connection? The DataAdapter? And if so, how
do I go about rebinding my form?
Thanks!
Mike