I have a form with a checkbox that is bound to a System.Boolean field in a
data table. I also have a handler for the DataRowChange event.
When I check or uncheck the checkbox the DataRowChange handler is not
called. If I call EndCurrentEdit() the handler also does not fire.
However, if I call AcceptChanges() the DataRowChange handler does get
called.
My question is... After the CheckBox is bound to the DataSource, when and
how does the DataSource get updated?
Thanks for any help.
David
David - 14 May 2006 20:30 GMT
I also noticed that when you attach the Format and Parse event handlers to
the Binding that they get called with the correct values. Also, if I
explicitly check the values in the DataTable it is correctly updated when
the focus leaves the control.
However... DataSet.HasChanges() always return false and the handler for the
DataRowChange event does not get called.
How is this supposed to work? What causes HasChanges() to return true.
Thanks again.
David
>I have a form with a checkbox that is bound to a System.Boolean field in a
>data table. I also have a handler for the DataRowChange event.
[quoted text clipped - 10 lines]
>
> David