| January
18th 2006
Databinding
- again
Databinding seems
to be a straightforward method of doing a record based application
- but one thing that's been a real struggle of late is dealing with
databound objects that can be updated programmatically...
Take for example
an "end date" which is something the user can enter. Then add a duration
box (an alternative way of getting to the same result) - so now when
a duration is entered the end date should be recalculated. But it's
databound!
This seems very
difficult to find information on; but it would appear that calling
row.BeginEdit and row.EndEdit around the update improves the situation
a lot. However we have one PC that works differently from all the
others - run the same application and the duration calculation just
doesn't work. If we ever find out why we'll post it up here!
|