type TDBGrid = class(DBGrids.TDBGrid) public property InplaceEditor; end;
if DBGrid1.InplaceEditor<>nil then Caption:=DBGrid1.InplaceEditor.Text;