Solved

Easy numeric data entry in DBGRID

Posted on 2000-02-20
4
302 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

23 Experts available now in Live!

Get 1:1 Help Now