PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Damn dirty databinding - why is CurrencyManager.Position changing???

Reply

Damn dirty databinding - why is CurrencyManager.Position changing???

 
Thread Tools Rate Thread
Old 02-06-2005, 11:13 PM   #1
Robert C. Nell
Guest
 
Posts: n/a
Default Damn dirty databinding - why is CurrencyManager.Position changing???


I have a form containing various controls bound to columns in a dataset.
The table these fields are bound to has only 1 record in it. When I
explicitly change a value in the table the bound controls are clearing and I
believe it's because the position of the default currency manager is
changing. I cannot figure out why it is changing but it is causing problems
with code that has existed error-free for over a year now. Yeah, I know
that is a ludicrous statement - something has had to change but I can't
figure out what would cause this issue. To further complicate the issue it
only happens with some records and they appear no different from records for
which the code works.

How could performing the following action cause the currency manager
position to change????? It appears to change when the implicit call to
EndEdit is occurring. (I've added BeginEdit and EndEdit calls around the
following code to debug it and the currency manager position is changing
when EndEdit is called.)

MyDataSet.MyTable(0).TotalSale = 0

Thanks in advance for any help!


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off