This isn't really a Firebird question. 

 

Having said that, I dealt with this problem by writing a handler for the
KeyPress event on the TextBox. That's not absolutely foolproof, because it's
possible to change the value in a TextBox with only mouse actions (e.g.
right-mouse click Paste) but it should work most of the time. 

 

I also have ComboBoxes that can change, where I want to detect that change.
In that case, I have handlers both for KeyPress and for Click (because I
assume if they Click, they are going to change the value by selecting
another drop-down item).

---------------------------
Dan Cooperstock
DONATION web site:  <http://www.FreeDonationSoftware.org>
http://www.FreeDonationSoftware.org
DONATION Support forums:  <http://forums.FreeDonationSoftware.org>
http://forums.FreeDonationSoftware.org
E-mail:  <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]
Home Phone: 416-423-9064

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Rick Roen
Sent: April 6, 2007 7:21 AM
To: 'For users and developers of the Firebird .NET providers'
Subject: [Firebird-net-provider] datarowview.isedit

 

FB 1.5

VS 2005

 

I'm confused about the results I get from a DataRowView.IsEdit

 

Here is the scenario:

- Strongly typed datatable -> bindingsource -> textbox controls for editing 

- The client edits a textbox connected to TableA.

- The client moves to another tab where they will do some operations on
TableB, but dependent on TableA

- I want to notify them that they need to save their changes to TableA
first.

 

I am trying to use DataRowView.IsEdit, but it seems to be true all the time
until I call EndEdit.

 

TableADataAdapter.Fill(TableA) >> drv.IsEdit = true

TableA.AcceptChanges >> drv.IsEdit = True but I haven't edited anything?

TableABindingSource.EndEdit >> drv.IsEdit = False

Client edits in a textbox or some other control connected to the
TableABindingSource >> What event can I capture to see that a value has
changed?

 

Rick

 

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to