I just noticed that decimal values in my read-only grid do change values in the underlying database anyway.
Steps to reproduce:
I have VFP6 (don't know if other versions have the same problem)
Create a new form
Add a grid
Open the Builder
Add a table with a numeric field with decimal places with filled values in it like 12.345
add that field to the grid
choose Style Professional (this is important)
close the builder
make the grid readonly
do the form
Click in the record with that value of e.g. 12.345
move the cursor to the left or the right with the arrow keys of your keyboard without changes the value.
When you leave the record the value becomes an integer value and loses the decimal values.
The underlying table has changed in spite of being a read-only grid.
Steps to reproduce:
I have VFP6 (don't know if other versions have the same problem)
Create a new form
Add a grid
Open the Builder
Add a table with a numeric field with decimal places with filled values in it like 12.345
add that field to the grid
choose Style Professional (this is important)
close the builder
make the grid readonly
do the form
Click in the record with that value of e.g. 12.345
move the cursor to the left or the right with the arrow keys of your keyboard without changes the value.
When you leave the record the value becomes an integer value and loses the decimal values.
The underlying table has changed in spite of being a read-only grid.