crdbgrid

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
crownfield
Posts: 5
Joined: Sun 11 Oct 2009 01:07

crdbgrid

Post by crownfield » Thu 21 Oct 2010 01:25

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?

AndreyZ

Post by AndreyZ » Thu 21 Oct 2010 09:24

Hello,

I cannot reproduce the problem. Are you using CashedUpdates?

crownfield
Posts: 5
Joined: Sun 11 Oct 2009 01:07

Vanishing update

Post by crownfield » Sat 23 Oct 2010 01:05

You are good. Found,fixed.

thanks...

AndreyZ

Post by AndreyZ » Mon 25 Oct 2010 06:56

It is good to see that this problem has been solved. If any other questions come up, please contact me.

Post Reply