unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtnrs, StdCtrls, ExcelXP, OleServer, DB, DBClient, ExtCtrls, Grids, DBGrids, ComCtrls;type TDBGrid=Class(DBGrids.TDBGrid) protected procedure ColumnMoved(FromIndex, ToIndex: Longint); override; end; TForm1 = class(TForm) DBGrid1: TDBGrid; private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{ TDBGrid }procedure TDBGrid.ColumnMoved(FromIndex, ToIndex: Integer);begin// inherited;//这里不执行任何函数就可以了end;