Rohit asked us:
> Is there any way to force edit-controls to pull in modified values
> from internal buffers. Any FieldByName.updates do not reflect into
> edit-controls.
One method is to do a MyDataSet.Resync([]) call, which will force the
dataset to refill all of its internal buffers and then broadcast a
deDataSetChange data event.
Its somewhat odd that your FieldByName updates are not being reflected back
into the edit controls. Whenever a field is written to in an implemenattion
of TDataSet.SetFieldData the following code fires at the end:
if not (State in [dsCalcFields, dsFilter, dsNewValue]) then
DataEvent(deFieldChange, Longint(Field))
and all correctly implemented data-aware control refresh their contents when
they recieve the notification via their TDataLink.RecordChanged call.
So either you are in a unnotifing TDataSet state, or your controls are not
recieving or processing the the RecordChanged notification. Most strange...
Cheers, Max.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz