I try to change the field name of FDMemTable1field1 which is 'field1' to 'field3'. There is no code and all is done in design-time.
TForm1 = class(TForm)
DBGrid1: TDBGrid;
DataSource1: TDataSource;
FDMemTable1: TFDMemTable;
FDMemTable1field1: TStringField;
FDMemTable1field2: TStringField;
When a file is loaded via FDMemTable1 pop-up menu in design window DBGrid1 shows data well. Changing 'field1' to 'field3' in Object Inspector makes FDMemTable1.Active 'false' and all cells of DBGrid1 clear.
Switching FDMemTable1.Active 'true' shows only DBGrid1 title 'field3' and 'field2' not data cells.
At last loading the same file fires an error Field 'field3' not found. Even if I change the name after the deactivation of FDMemTable1 the result is same.
Is changing a field name in design-time possible? Should I copy the whole 'field1' to 'field3' and delete the former in run-time?