I've use 32-bit Lazarus 1.4.2 on 32-bit Windows7 until recently and few days a go I downloaded 32-bit Lazarus 1.6.4 on a 64-bit Windows10.
In a DBGrid Thousands are grouped all right on the version 1.4.2 and wrong on the 1.6.4.
Pictures attached are showing different grouping of thousands in a DBGrid, same application, already developed but compiled with a different version of Lazarus. Dont be confused by "," and "." , in my locale the thousand separator is "." and decimal separator is ",".
The code is :
if CheckBox1.Checked=false then begin
TFloatField(qgrid.FieldByName('budjet')).DisplayFormat := '#,###,##0.00;-#,###,##0.00;0' ;
TFloatField(qgrid.FieldByName('razlika')).DisplayFormat := '#,###,##0.00;-#,###,##0.00;0' ;
TFloatField(qgrid.FieldByName('ostvareno')).DisplayFormat:= '#,###,##0.00;-#,###,##0.00;0' ;
end;
Grouping is not always the same, as you can see on the pictures , only the first column is grouped wrong.
In some forms I have DBGrid columns formated via the ObjectInspector which is also wrong.
When I say wrong, it's not always the same like on the attached pictures, sometimes there are not even formated at all.