🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Francesco Vaninetti Sun, 24 Sep 2000 00:00
DBGrid and PickList
#949
Author: Francesco Vaninetti
Date: Sun, 24 Sep 2000 00:00
13 lines
764 bytes
Hello everyone !

I must pass the date of the day to PickList of DBGrid by code

I tried this, but it doesn't work.

DBGrid1->Columns[2]->PickList->Add(DateToStr(Date()));

Can anybody help me ??

Thanks for the help in advance

                    Francesco
Re: DBGrid and PickList
#952
Author: Dave Wahl
Date: Mon, 25 Sep 2000 00:00
38 lines
1356 bytes
I'm not sure, but you may try building the string list first:

for(LOOP_CRITERIA){
 MyStrList->Add(DateToStr(Date()));
}
DBGrid1->Columns[2]->PickList = MyStrList;



From Borland help:

__property Classes::TStrings* PickList = {read=GetPickList,
write=SetPickList};

Description

The PickList property points to a TStrings object. If ButtonStyle is
cbsAuto, these strings appear in the drop-down list associated with the
column.


"Francesco Vaninetti" <franvani@bigfoot.com> wrote in message
news:39ce4215_2@dnews...
> Hello everyone !
>
> I must pass the date of the day to PickList of DBGrid by code
>
> I tried this, but it doesn't work.
>
> DBGrid1->Columns[2]->PickList->Add(DateToStr(Date()));
>
> Can anybody help me ??
>
> Thanks for the help in advance
>
>                     Francesco
>
>
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