In prior versions of Delphi, I have used the data module (TDataModule) as a place to keep non-visual components to avoid cluttering up the main form. In Delphi
This (buggy) behavior in
unit Unit2;
interface
uses
System.SysUtils, System.Classes;
type
TDataModule2 = class(TDataModule)
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
DataModule2: TDataModule2;
implementation
{%CLASSGROUP 'System.Classes.TPersistent'}
{$R *.dfm}
end.
is caused by the line
{%CLASSGROUP 'System.Classes.TPersistent'}
To get rid of just delete or modify the line into
{.%CLASSGROUP 'System.Classes.TPersistent'}
After switch to Design View you will see all the components as you expect.
(Delphi XE2 16.0.4504.48759)