Subject RE: [IBO] Duplicating rows
Author Riho-Rene Ellermaa
UpdateData(Sender,Source,Field) is protected
method and not accessible. I don't want to start messing with IBO header files.

Riho-Rene Ellermaa
senior programmer
Hansabank

>2. After duplication (query i still in Insert state) the new data whows ok
>on the grid, but TIB_Edit fields (etc.) are empty. They start showing
>values only when I click on them. Should I call some kind of method to get
>the values visible in Edit fields also?

What happens if you call the UpdateData method of the edit controls?

var
ii: integer;
..
..
with aForm do
for ii := 0 to ComponentCount -1 do
begin
if Components[ii] is TIB_CustomEdit and not(Components[ii] is
TIB_CustomGrid) then
if Datasource = aDatasource then
if Components[ii].Field.FieldName in (['FieldA', 'FieldB',
'FieldC']) then
TIB_CustomEdit(Components[ii]).UpdateData;
end;


regards,
Helen Borrie (TeamIBO Support)