🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.winforms.controls.using
1 messages
1 total messages Started by Mohamad El-Sayed Wed, 06 Sep 2006 05:06
Popluating Comboxbox from Datasource
#242
Author: Mohamad El-Sayed
Date: Wed, 06 Sep 2006 05:06
25 lines
1462 bytes
Hello All,

I am trying to populate my combobox from datasource which is assigned from 
Arraylist and I am getting the following error:

Coud not bind to the new display member.'.

This is my code:

ALTrusteeType := ArrayList.Create;

ALTrusteeType.Add(TLookupClass.Create('Individual','0'));
ALTrusteeType.Add(TLookupClass.Create('Company','1'));

NF_TrusteeTypeComboBox.DataSource := ALTrusteeType;
NF_TrusteeTypeComboBox.DisplayMember := 'Name';
NF_TrusteeTypeComboBox.ValueMember := 'Value';


TLookupClass has 2 properties Name and Value.

Thanks for your help.
Regards,

Mohamad 
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