Groups | Blog | Home
all groups > dotnet windows forms databinding > january 2005 >

dotnet windows forms databinding : Refresh Text Box


nick_nw
1/19/2005 6:37:18 AM
Hi All,

I know this has been discussed (and answered) in other threads, but I'm
still not getting the functionality I need.

My app is a C# Windows App, with a MS Access DB. My app communicates
using TCP/IP to a black box we are developing.

What I want to happen is the user changes a record in the DB using my
C# app. The form uses the CurrencyManager to bind controls to the
underlying strongly typed dataset.

When the user confirms a row edit all controls are disabled.
EndCurrentEdit is called. A transaction is started. Update is called
within the transcation context. If the update suceeds a message is
sent to the black box with the record's data.

If the black box acks positively I end the transaction and all is fine.

If the black box negatively acks then I rollback the transaction. What
I can not do is rollback the text box on the form. I have called
CurrencyManager's Refresh method to no avail.

Code available on request.

Any queries/questions please email me at nick.gardner AT teamsimoco DOT
com

Thanks in advance,

Nick
ng5000 NO[at]SPAM gmail.com
1/20/2005 9:30:52 AM
Hi All.

Well no replies then? Never mind, I figured it out (well not quite,
but...).

I changed from using the CurrencyManager class to the DataView class +
a few extra lines of code, and it all works as required now.

Nick
AddThis Social Bookmark Button