I have a detail grid using a edDataCheckBox. The number of rows is changes with the selection of the master row. Each time the master row changes, I remove the checkbox column and reset the rowcount and readd the checkbox column like this:
grd.RemoveCheckBoxColumn(1);
grd.RowCount := newRowCount;
grd.AddCheckBoxColumn(1, false, true);
This causes memory leak of
Unicode String x number of rows removed
TCellGraphics x number of rows removed
TCellProperites x number of rows removed
The memory leak occurs whether I remove the CheckBox column or remove the CheckBoxes individually.
Is there are way around this. Am I doing something wrong?