Where R is the row number. The column 114200 should display 1000.00 but it displays ###.##. Why? I do not understand.
Greetings,
Fons
When I delete the line "GridICOverview.FloatFormat:= '###.##';" from my code, than result is as follows. But, than I do not have the formatting I want to have.
Now that is fixed, I have the following issue... The amounts in column 114200 are done using Grid.Floats but the sorting is wrong. Do I need to set some options to make it sort correctly?
Sorting detection happens automatically, we couldn't see an issue here when sorting. If for some reason it does not detect the sorting properly, you can customize the sort using OnSortFormat event and setting the sortformat to ssNumeric. If that does not work, you can set the sort format to ssCustom, and use the OnCustomCompare event
Again, the values recognization process might take the numbers for strings. Please set:
procedure TForm1.TMSFNCGrid1SortFormat(Sender: TObject; Col: Integer;
var SortFormat: TTMSFNCGridSortFormat; var APrefix, ASuffix: string);
begin
if Col = 3 then
SortFormat := ssNumeric;
end;