Saturday, January 10, 2009

Re: [advanced_delphi] DBGrid ... make me crazy !

set it to a floating type number and set the fieldmask property for the table in code or the object inspector (double click the table object, then double click the field and it's in the
properties for the field. Set the mask as you would a mask in TMaskEdit.

   That TMS AdvGrid has lots of undocumented "issues". I found their entire product line
to be like that. You're best bet is to download all the samples for that component from
their web site and hope that what you want is addressed in one of them because the documentation is more or less useless.

Dave

--- On Sat, 1/10/09, pietro <pietro.bossi@bluewin.ch> wrote:
From: pietro <pietro.bossi@bluewin.ch>
Subject: [advanced_delphi] DBGrid ... make me crazy !
To: advanced_delphi@yahoogroups.com
Date: Saturday, January 10, 2009, 12:16 PM

Hi All,

I am writing my first ADO / dBase program and I have problem with data
inside a DBGrid: (data are from an MS Access table and I use Delphi-7
enterprise)

I have a field where I would like to represent a frequency (let say a
number), example 900.00 or 1034.23, so always with two decimal position
after the integer part.

- If I use the field as a string, all seem ok, but when sorting I have
(from top-to bottom): 1024.67 - 3345.99 - 558.00 - 900.00 etc..., the
sorting is on first character of the number (1-2-3-4-5-6-7-8-9), so
there is no correlation with the "numerical value" ... from the
smaller
number to the biggest number (in effect I want to have: 558.00 - 900.00
- 1024.67 - 3345.99, etc...)

- If I use the field as number, I can achieve the correct sorting
sequence (smaller - to - biggest number) but number with two zero on
decimal part will only represented with integer part: 990.00 = 990

Is there a way to solve my problem ???

I try also to use a TMS DBadvGrid (that's very beautiful and nice), but
to activate the sorting I must set PageMode = false, then clicking on a
DBgrid row, I don't know how to select a record to edit, it's always
pointing to the last record of the table.

Pleaseeeeeeeeee help !!

TNX, Pietro

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/advanced_delphi/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/advanced_delphi/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:advanced_delphi-digest@yahoogroups.com
mailto:advanced_delphi-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
advanced_delphi-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

0 comments: