Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 551
  • Last Modified:

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. -
0
ttheimer
Asked:
ttheimer
  • 2
1 Solution
 
TheRealLokiSenior DeveloperCommented:
in the field definition for that field, set the DisplayFormat to 0.0
0
 
TheRealLokiSenior DeveloperCommented:
same for 'EditFormat' also
0
 
ttheimerAuthor Commented:
Had to hunt some to locate these properties in a DevEx control - found them in the CurrencyEdit - works great!  Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now