unit Uheader;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, StdCtrls;

type
  TFheader = class(TForm)
    DBGrid1: TDBGrid;
    btdetail: TButton;
    btnouveau: TButton;
    btsupprimer: TButton;
    btok: TButton;
    procedure btdetailClick(Sender: TObject);
    procedure btsupprimerClick(Sender: TObject);
  private
    { Déclarations privées }
  public
    { Déclarations publiques }
  end;

var
  Fheader: TFheader;

implementation

{$R *.dfm}
uses uprinc,udata, Udetailcommande;
procedure TFheader.btdetailClick(Sender: TObject);
begin
fdetailcommande.showmodal;
end;

procedure TFheader.btsupprimerClick(Sender: TObject);
begin
try
 Data.Theader.Delete;
except

showmessage('Suppression impossible');
end;
end;

end.
