Page 1 of 1

crdbgrid

Posted: Thu 21 Oct 2010 01:25
by crownfield
pop up component alters data in table.

procedure TForm1.RadioGroup2Click(Sender: TObject);
begin
// copy code to field from popup to the table
//
with mytable1 do begin;
if (state dsedit) then Edit;
FieldByName('Name').asstring:= radiogroup2.items[radiogroup2.itemindex] ;
if modified then post;
end;
radiogroup2.hide;
end;

// the changes are visible in the grid when the popup hides,
// but the changes are not committed to the table
// when you stop and restart the program. suggestions?

Posted: Thu 21 Oct 2010 09:24
by AndreyZ
Hello,

I cannot reproduce the problem. Are you using CashedUpdates?

Vanishing update

Posted: Sat 23 Oct 2010 01:05
by crownfield
You are good. Found,fixed.

thanks...

Posted: Mon 25 Oct 2010 06:56
by AndreyZ
It is good to see that this problem has been solved. If any other questions come up, please contact me.