I
inadsad
Hi Group,
I have a form with textboxe, maskedit controls including two
buttons (Add, Cancel). Controls are bound to a dataset as follows:
txtName.DataBindings.Add(New Binding("Text",
dDatasetA.Tables("Charge"), "Name"))
maskPhone.DataBindings.Add(New Binding("Value",
dDatasetA.Tables("Charge"), "Number"))
On load event I bring up an existing record and then press <Add> works
fine (clears name and number fields), and, <cancel> has the following
code:
dDataset.Tables("Charge").RejectChanges()
The difficulty I'm having is that RejectChanges doesn't restore number
field to the original value, name field works fine. The only
difference between above two line is the propertyname. Why Name
field, on rejectchanges, goes back to the original value and not the
number field?
Thanks
Ian
I have a form with textboxe, maskedit controls including two
buttons (Add, Cancel). Controls are bound to a dataset as follows:
txtName.DataBindings.Add(New Binding("Text",
dDatasetA.Tables("Charge"), "Name"))
maskPhone.DataBindings.Add(New Binding("Value",
dDatasetA.Tables("Charge"), "Number"))
On load event I bring up an existing record and then press <Add> works
fine (clears name and number fields), and, <cancel> has the following
code:
dDataset.Tables("Charge").RejectChanges()
The difficulty I'm having is that RejectChanges doesn't restore number
field to the original value, name field works fine. The only
difference between above two line is the propertyname. Why Name
field, on rejectchanges, goes back to the original value and not the
number field?
Thanks
Ian