Easy numeric data entry in DBGRID

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!
mitatAsked:
Who is Participating?
 
JaymolConnect With a Mentor Commented:
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
 
ITugayCommented:
listening...
0
 
JaymolCommented:
Whenever you alter a field, make it refresh the grid.  That should apply the formatting changes.

John.
0
 
mitatAuthor Commented:
I prefer a custom grid which handles all type of data correctly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.