{That's all! The OnClick is already declared in TControl as aprotected property. All you have to do is publish it, register thederived component}TGroothuisGrid = class(TDBGrid) {!}published property OnClick;end;