I have set my FNCGrid Col 4 als Spinbox
Grid.Columns[4].Editor := etSpinBox;
and want to set the Increment Value to 0.25 and the min and max Value.
How can i do that.
You can override the settings by using the following code:
procedure TForm1.TMSFNCGrid1GetCellEditorProperties(Sender: TObject; ACol,
ARow: Integer; CellEditor: TControl);
begin
if CellEditor is TTMSFNCGridSpinBox then
begin
(CellEditor as TTMSFNCGridSpinBox).Increment := 1;
(CellEditor as TTMSFNCGridSpinBox).Max := 4;
end;
end;
Thank you for your answer,
thats exactly what i want to know.
Is the Spinbox increment only Integer or also for Float Values usable ?
It seems it's only suitable for Integer values.