Good afternoon Jim,
i'm not use AdvSpinEdit into grid, but if it's the same advspinedit i'm use to increment 0,01 you have to set the IncrementFloat property to 0,01.
Also, in AdvSpinEdit there's a Precision property, set it to 2.
Regard
Daniele
Hi Jim,
i don't use DBAdvGrid (becuse i prefer tu use AdvStringGrid) but both components have the GetEditorType event.
With this event you can set an editor type depending from the column and/or row.
I try with AdvStringGrid (i have no db to test DB version) and the following code (as the documentation).
In this grid if you click on column 2 a spin edit apperars.
procedure TForm1.SG1GetEditorType(Sender: TObject; ACol, ARow: Integer;
var AEditor: TEditorType);
begin
if Acol = 2 then
Begin
Aeditor:=edSpinEdit;
SG1.SpinEdit.EditorEnabled:=True;
SG1.SpinEdit.Precision:=2;
SG1.SpinEdit.SpinType:=sptFloat;
SG1.SpinEdit.IncrementFloat:=0.01;
End;
end;
The funny thing is, even is specified as float type ..... the spin edit respond as interger type (on delphi rio)
If the editor type respond as a spintype, i think this is thw way to follow.
Have a nice day
Daniele