Solved

Easy numeric data entry in DBGRID

Posted on 2000-02-20
4
300 Views
Last Modified: 2008-02-26
Dear experts,

How can I make "easy to read numeric" data entry in dbgrid which is displayed from "right to left" and "seperated by comma" while you enter numeric value (in edit state)?

Ex:
______1
_____12
____123    
__1,234

Every field has DisplayFormat and EditFormat properties. DisplayFormat has effect only when that field has lost focus. And EditFormat does not solve the problem.

Please help me!
0
Comment
Question by:mitat
  • 2
4 Comments
 
LVL 9

Expert Comment

by:ITugay
Comment Utility
listening...
0
 
LVL 6

Expert Comment

by:Jaymol
Comment Utility
Whenever you alter a field, make it refresh the grid.  That should apply the formatting changes.

John.
0
 
LVL 6

Accepted Solution

by:
Jaymol earned 100 total points
Comment Utility
Actually, ignore that....the only thing I could suggest is to create a TEdit control over the cell that's being edited and take data directly from that into the grid.  You can format the TEdit control yourself quite easily.  If you want an example, let me know your email address and I'll forward you something.

John.
0
 

Author Comment

by:mitat
Comment Utility
I prefer a custom grid which handles all type of data correctly.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now