TTMSFMXTableView - refreshing the view

I have a TableView that I refresh with new data, this might result in less items that the previous display, say 3 instead of 6. When this happens the first 3 items change to show teh new data but items  4 - 6 continue to be displayed until the control is selected. The code I am using is:


MyTable.BeginUpdate;
try
  MyTable.Items.Clear;

  for M in MyArray do
  begin
     T := MyTable.Items.Add;
     T.Caption := 'some value';
  end;

finally
  MyTable.EndUpdate;
end;  

Any Ideas?

Using XE6

I retested this with a default TTMSFMXTableView on the form and the code:


procedure TForm5.Button1Click(Sender: TObject);
var
  i,m: integer;
begin
  m := random(10);
  TMSFMXTableView1.BeginUpdate;
  TMSFMXTableView1.Items.Clear;


  for i := 0 to m do
    begin
      TMSFMXTableView1.Items.Add.Caption := 'item '+inttostr(i);
    end;

  TMSFMXTableView1.HeaderText := inttostr(m);

  TMSFMXTableView1.EndUpdate;
end;

and this always shows a match between items and nr. of items in the header.

Do you use the latest version of the component? If a problem persists, please provide some sample source project with the issue isolated with which we can reproduce this here.

HI Bruno


I've sent a project to you.

Russell

any update on this?