TTMSFMXGrid Deleting rows from filtered grid

Hi,

There is a visual/refresh bug in the grid when you delete rows using the DeleteRow method whilst the grid is filtered by using the column header.
If you sort the grid afterwards, the visual problem goes away.
Just calling Repaint does not solve the problem.

I have made a test program to display this problem, which I will send by mail.

Below is the test routine I use to delete rows from the grid.
I just delete every 4th row (from the bottom of the grid).

I use the DisplToRealRow method to get the real rownumber, 
but I'm not sure if this DisplToRealRow method should be used always (e.g. when the grid is NOT filtered).
Without this method, the visual problem is also present.

procedure TForm1.btnDeleteRowsClick(Sender: TObject);
var
  rw: Integer;
begin
  TMSFMXGrid1.BeginUpdate;
  try
    for rw := TMSFMXGrid1.RowCount - 1 downto TMSFMXGrid1.FixedRows do
    begin
      if rw mod 4 = 0 then
        TMSFMXGrid1.DeleteRow(TMSFMXGrid1.DisplToRealRow(rw)); // TMSFMXGrid1.DeleteRow(rw);
    end;
  finally
    TMSFMXGrid1.EndUpdate;
  end;
end;

Hi,


You can always use DisplToRealRow as this is necessary to delete rows when filtered. Please send us a sample to reproduce this issue.

I already have sent the test program as stated in my post (to support)