I am trying to create a form dynamicly and thus I need to initialize my DBGrid with code.
{ Connect the DBGrid to the database. }
procedure TfrmRemoveRecord.InitDBGrid();
begin
dbgList.DataSource := dmProgramDatabase.dsrCaches;
end;
But I get an access violation error.