Format display in DBGrid cell? (D2007 and Vista)
- From: "Sven Pran" <no.direct@xxxxxxxxxxx>
- Date: Sat, 19 Apr 2008 17:01:16 +0200
I display (and shall process) data from an Excel workbook using TADOConnection, TADOQuery, TDatasource and TDBGrid.
My problem is that one of the columns in the workbook is formatted as Currency with two decimals, but in the DBGrid both the currency prefix and any trailing decimals equal to zero are suppressed. I don't care about the currency prefix in this display, but I should very much like to have both decimals shown whether or not they are zero.
I had a similar situation with another program connecting to an Access database. In that program I already used TADODataset (instead of TADOQuery) and was told how to control the DBGrid display using the fielddef properties in TADODataset. Is this how I must do it here as well or can I do it (the simpler way?) with TADOQuery?
regards Sven
.
- Follow-Ups:
- Re: Format display in DBGrid cell? (D2007 and Vista)
- From: Bob Swart
- Re: Format display in DBGrid cell? (D2007 and Vista)
- Prev by Date: Re: Locking of individual record in table
- Next by Date: Re: Format display in DBGrid cell? (D2007 and Vista)
- Previous by thread: Locking of individual record in table
- Next by thread: Re: Format display in DBGrid cell? (D2007 and Vista)
- Index(es):
Relevant Pages
|