unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Grids;type TForm1 = class(TForm) Button1: TButton; sg: TStringGrid; Button2: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;type TExCell = class(TStringGrid)public //procedure DeleteRow(ARow: Longint); // procedure DeleteColumn(ACol: Longint); procedure InsertRow(ARow: LongInt); // procedure InsertColumn(ACol: LongInt);end;var Form1: TForm1;implementation{$R *.dfm}procedure TExCell.InsertRow(ARow: Integer);begin RowCount :=RowCount +1; MoveRow(RowCount-1, ARow);end;procedure TForm1.Button1Click(Sender: TObject);var sg : TExCell ;begin sg := TExCell.Create(sg); sg.InsertRow(5);end;end.帮看下,怎么不好用呀?