I reported problem with TValueListEditor sorting problem when any cell of it was focused.
And I found that the last row is not deleted fully when the deletion is carried out with the last row focused.
Following code works correctly, when I move away the focus from TValueListEditor.
var
vlEditor: TValueListEditor;
edCodeLabel: TEdit;
begin
if vlEditor.Row >= 1 then
begin
edCodeLabel.SetFocus; // I have to move away the focus in order to following line work perfect
vlEditor.DeleteRow(vlEditor.Row);
end;
end;