Problems with combobox - cant set the value

R

Richard Kvist

Hi !

Is there a way to populate the Combobox value without using the databind
property, I use a foreach clause instead.

Richard
 
K

Katie Schaeffer [MSFT]

Hi Richard,

Have you tried:
foreach (MyItem myitem in ListOItems)
this.comboBox1.Items.Add(myitem.Text);

Hope this helps,
-Katie
--------------------
| From: "Richard Kvist" <[email protected]>
| Subject: Problems with combobox - cant set the value
| Date: Tue, 15 Jul 2003 09:31:22 +0200
| Lines: 8
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: ida.dagaz.se 212.28.208.247
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:28208
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi !
|
| Is there a way to populate the Combobox value without using the databind
| property, I use a foreach clause instead.
|
| Richard
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top