Solved

Easy numeric data entry in DBGRID

Posted on 2000-02-20
4
303 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
ID: 2541580
listening...
0
 
LVL 6

Expert Comment

by:Jaymol
ID: 2541989
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
ID: 2541994
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
ID: 2545630
I prefer a custom grid which handles all type of data correctly.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 121
Delphi - replicating a form 8 74
Delphi IDE crash without error message ... 7 89
Twebbrowser add css to the header 3 25
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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