TTMSFMXGrid Sort Issue

Hi,


I have a TMSGrid.
Fill it with (random) data.
Sort the grid by clicking on a columnheader.

Clear the grid.
Fill it with (random) data, again.

At this point the sorting triangle is still visible in the fixed row.
How to remove/hide the triangle ?

TIA

Hi, 


Can you try with TMSFMXGrid1.ClearSortColumn;

Yes, tried that already.
No success.

Works as expected here


procedure TForm1.FormCreate(Sender: TObject);
begin
  Initialize;
end;

procedure TForm1.Initialize;
begin
  TMSFMXGrid1.BeginUpdate;
  TMSFMXGrid1.Options.Sorting.Mode := gsmNormal;
  TMSFMXGrid1.Clear;
  TMSFMXGrid1.ClearSortColumn;
  TMSFMXGrid1.RowCount := 100;
  TMSFMXGrid1.ColumnCount := 10;
  TMSFMXGrid1.RandomFill();
  TMSFMXGrid1.EndUpdate;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Initialize;
end;

Thx Pieter,


I tested your example and it seems to work without any problems.
However I have an own component derived from the TTMSFMXGrid.
And I my case it doesn't work.
Not sure what I'm doing wrong, just yet.

I will investigate this further and let you know.
Thx for the quick response.

It looks like it's working now.