FMXGrid Sort Icon

Is there any way to programmatically control the sort triangle that appears in the column header? Change direction or turn it off? The data in the grid is sorted in code and we want to update the column headers to reflect this accordingly.

Hi, 


To add a sort indicator programmatically, you can use the following code

  TMSFMXGrid1.BeginUpdate;
  TMSFMXGrid1.Options.Sorting.Mode := gsmNormal;
  TMSFMXGrid1.SortColumn := 1;
  TMSFMXGrid1.SortDirection := sdAscending;
  TMSFMXGrid1.EndUpdate;

Kind Regards, 
Pieter

Great, that works fine! Thanks!