Notification on IsEdit Change in DataSet

  • Thread starter Thread starter Markus Armbruckner
  • Start date Start date
M

Markus Armbruckner

Hi!

How can I get a notification (event), when any field of a
dataset was changed (e.g. a letter was entered into a
textbox that is databound)? I want to be notified by an
event and do not want to repeatedly query the
DataRowView.IsEdit property.

Does anybody have an idea?

Greetings
Markus
 
Check out the following DataTable events:

ColumnChanging
ColumnChanged
RowChanging
RowChanged
RowDeleting
RowDeleted
 
I think these events are only triggered when the column
is changed (row is changed), e.g. in a form when I move
the focus from one field to the other (one row to the
other).

But I need a notification, when the "Proposed
DataViewRow" object is changed (e.g. I enter one letter
into a textbox and do not leave it, I want to be notified
of each single change in the textbox (dataviewrow field)).

How to achieve this??
 
Markus,

You'll have to use events on the textbox. You could experiment with issueing
EndCurrentEdit in the textbox events which would force the DataTable events.
 
That's disappointing for I hoped the dataset (datarow,
datarowview) would offer an event that I could listen for.
I don't want to monitor all the controls in order to be
informed of a change (even if it's a change of the
proposed datarowview value).
 
Back
Top