Activate edit mode on CurrencyManager?

  • Thread starter Thread starter Jorge
  • Start date Start date
J

Jorge

Hi there,

I have a WinForm with two textboxes binded to a CurrencyManager. What I want
to do is this: to get the CurrencyManager's edit mode activated when the
content of any of the binded textboxes is changed. Then, I would like to
capture this change of state (in some event perhaps?) so I can enable the
'Save' and 'Cancel' buttons. Is this possible?

Thanks in advance for any pointers,

-Jorge
 
Miha Markic said:
Hi,

Did you try with CurrencyManager.CurrentChanged event?

CurrentChanged gets fired on too many situations, even while navigating the
records. And unfortunately, it does not fire when I edit the textboxes. :-(

I think I need something like a "DataChanged" event, but in the meantime,
I'll resort to an "Edit" button.

Thanks for your help,

-Jorge

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Jorge said:
Hi there,

I have a WinForm with two textboxes binded to a CurrencyManager. What I want
to do is this: to get the CurrencyManager's edit mode activated when the
content of any of the binded textboxes is changed. Then, I would like to
capture this change of state (in some event perhaps?) so I can enable the
'Save' and 'Cancel' buttons. Is this possible?

Thanks in advance for any pointers,

-Jorge
 
Back
Top