Link to home
Start Free TrialLog in
Avatar of ttheimer
ttheimer

asked on

Fixed decimal entry and display in a DBGrid

If I want a number to always be displayed in a fixed decimal format (always 1 decimal digit and always as least 1 digit to the left of the decimal) and I want to similarly limit the user input, how is this best accomplished?  Data is being displayed and entered into a DBGrid sourced by a SQL Server database via TADO components.
- Thanks. -
Avatar of TheRealLoki
TheRealLoki
Flag of New Zealand image

in the field definition for that field, set the DisplayFormat to 0.0
ASKER CERTIFIED SOLUTION
Avatar of TheRealLoki
TheRealLoki
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ttheimer
ttheimer

ASKER

Had to hunt some to locate these properties in a DevEx control - found them in the CurrencyEdit - works great!  Thanks.