initialize listbox

  • Thread starter Thread starter Lubomir
  • Start date Start date
L

Lubomir

Hi,

What is the best way to initialize a listbox by the first row from
multidimensional array? I wanted to use Listbox.DataSource but I could not
make it work.

Thanks,
Lubomir
 
Lubomir said:
What is the best way to initialize a listbox by the first row from
multidimensional array? I wanted to use Listbox.DataSource but I could not
make it work.

Try using something like listbox1.Items.AddRange(MyTable[0]);

Alternatively you could write a for/foreach loop and call Items.Add()

-HH-
 

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

Back
Top