Delphi4 & Oracle7 - problem with DBGrid

My form has the following components:
Table1                 TTable;
DataSource1      TDataSource;
DbGrid1              TDBGrid;
DBEdit1              TDBEdit;
DBNavigator1    TDBNavigator;

My table is empty. When I insert a new record, the State of Table changes to
dsEdit. Then I click in the DBEdit control. The State changes to dsBrowse
and dsEdit. The old record is canceled and a new record is inserted! If my
form doesn't have the TDBGrid component, only one record is inserted.

procedure TForm1.Table1NewRecord(Sender : TDataSet);
begin
  Caption := IntToStr(FCount);  // twice
  Inc(FCount);
end;

procedure TForm1.DataSource1StateChange(Sender : TObject);
var
  s : string;
begin
  case Table1.State of
    dsInsert: s := 'Insert';
    dsEdit: s := 'Edit';
    dsBrowse:  s := 'Browse';
    else
      s := 'aaaaaaaaa';

  ShowMessage(s);
end;

Why???
Is this a know bug??

Rinaldo da Silva
Quality Informtica