Solved

Easy numeric data entry in DBGRID

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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