Quoting Jeremy Coulter <[EMAIL PROTECTED]>:
> well I had tried that.
> But if I make the table active at designTime, the formating looks fine, BUT
> at run time it doesn't use the formating.
> ALSO, I make the header text centered, and this also doesn't get uses, i.e.
> they stay left aligned !
You can format anything you want in a control by assigning a persistent field
and then implementing the OnGetText or OnSetText event handler for the TField.
Off the top of my head I don't remember which is which but I have used these
extensively in a project to do all sorts of things, like formatting time
without the seconds (which is displayed by default), letting users type .
instead of : and entering more than 24 hours into a time field.
One of the events is used for displaying and the other for editing.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz