gbyt


I have a grid in a form in visual foxpro and when I try to type a quantity like 1233.92 press enter and when the text box lost focus it displays 1234.00 without any decimals. Please someone who give a clue!

 




Re: How can i stop rounding in a grid?

Rick Borup


Assuming its ControlSource is set up to accommodate at least two decimal positions, set the Format to R and the InputMask to something like 999,999.99 for the textbox in that column of your grid.





Re: How can i stop rounding in a grid?

gbyt

Thank you Rick for your quick answer I already tried what you wrote me and got nothing. when the cell has not the focus appear "0.00" but when it has the focus displays like if I use K format, any idea






Re: How can i stop rounding in a grid?

Rick Borup

I don't know how your grid is set up, but this sounds like the type of behavior you get when a column's Sparse property is set to .T., which is the default. Try setting Sparse = .F. on this column and see you get the desired result.