Article View: borland.public.cppbuilder.database.multi-tier
Article #952Re: DBGrid and PickList
From: Dave Wahl
Date: Mon, 25 Sep 2000 00:00
Date: Mon, 25 Sep 2000 00:00
38 lines
1356 bytes
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
>
>
Technical Details
Message-ID:
<39cf4e78_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39ce4215_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,f2e769db959d34c7 X-Google-Attributes: gidfcd2b,public From: "Dave Wahl" <dwahl@softwaresense.com> Subject: Re: DBGrid and PickList Date: 2000/09/25 Message-ID: <39cf4e78_1@dnews> X-Deja-AN: 673863955 References: <39ce4215_2@dnews> X-Trace: 25 Sep 2000 06:09:12 -0800, 208.136.15.225 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.cppbuilder.database.multi-tier X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600