How can I share an OnEnter event for a TcxGrid ?
- by Roland Bengtsson
I want to standardize the behaviour on an Devexpress TcxGrid. So I have a unit ClientData with a event:
procedure TClientData.grdOnEnter(Sender: TObject);
begin
mnuCxGridStandardMenu.Grid := TcxGrid(Sender);
end;
If I try to use that event from a TcxGrid.OnEnter event in another unit it refuse to work.
If I paste in ClientData.grdOnEnter then a dialog says it is not an valid identifier.
Is it possible to share an event for several units in Delphi 2007 ?