Thread View: borland.public.cppbuilder.database.multi-tier
4 messages
4 total messages
Started by Jerri Chiu
Wed, 27 Dec 2000 23:19
add local user column to TDBGrid
Author: Jerri Chiu
Date: Wed, 27 Dec 2000 23:19
Date: Wed, 27 Dec 2000 23:19
14 lines
1448 bytes
1448 bytes
Hi, I am facing the following problem, and not sure what is the best solution: I am using the TDBGrid to display my dataset, but i need to add couple columns to it which are not from the database. i will do some calculations behind, and put the values into these columns, in other words, they are local to the program. is there a way to trick the TDBGrid to handle this? if not, is there any other components that can serve the need other than writing my own code to creat a look-alike column? Thanks much. any suggestions is well appreciated. Thanks... Jerri Chiu
Re: add local user column to TDBGrid
Author: Giuliano
Date: Thu, 28 Dec 2000 00:50
Date: Thu, 28 Dec 2000 00:50
18 lines
1422 bytes
1422 bytes
On Wed, 27 Dec 2000 15:19:15 -0800, "Jerri Chiu" <jeje@home.com> wrote:
>Hi,
>
>I am facing the following problem, and not sure what is the best solution:
>
>I am using the TDBGrid to display my dataset, but i need to add couple
>columns to it which are not from the database. i will do some calculations
>behind, and put the values into these columns, in other words, they are
Hi Jerri,
my suggestion is that you could create a calculated field, then to fill
the OnGetText event.
Ciao
Giuliano
Re: add local user column to TDBGrid
Author: Jerri Chiu
Date: Thu, 28 Dec 2000 19:43
Date: Thu, 28 Dec 2000 19:43
23 lines
1413 bytes
1413 bytes
Hi Giuliano, thanks for the insight, how do i created a calculated field at run time? since i populate my select, where, order by clauses at run time. and how exactly do i use the OnGetText events to populate the values into the display? thanks really much...!! Jerri Chiu "Giuliano" <gcardinali@remove.adhoc.net> wrote in message news:3a4c8e61.18848793@newsgroups.borland.com... > Hi Jerri, > > my suggestion is that you could create a calculated field, then to fill > the OnGetText event. > > Ciao > > Giuliano
Re: add local user column to TDBGrid
Author: Giuliano
Date: Fri, 29 Dec 2000 03:47
Date: Fri, 29 Dec 2000 03:47
18 lines
1416 bytes
1416 bytes
On Thu, 28 Dec 2000 11:43:02 -0800, "Jerri Chiu" <jeje@home.com> wrote:
>Hi Giuliano,
>
>thanks for the insight, how do i created a calculated field at run time?
>since i populate my select, where, order by clauses at run time. and how
>exactly do i use the OnGetText events to populate the values into the
>display?
Hi Jerri,
take a look at this article:
http://www.temporaldoorway.com/programming/cbuilder/advancedissue/dynamiclookupandcalcfields.htm
Ciao!
Giuliano
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads