class

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

If I'm using a class and I want to fill data into listbox, what is the best
control to use?
It's a little stupid to use i listbox, because it's not a windows
application.

Is there a supstitute for listbox control ?

Hrcko
 
Hrvoje Voda said:
If I'm using a class and I want to fill data into listbox, what is the
best control to use?
It's a little stupid to use i listbox, because it's not a windows
application.

Is there a supstitute for listbox control ?

Hrcko

?

do you just want a collection of your classes then? if so use an ArrayList.
 
I want to fill data from dataset into somesort of a list.
Because I don't use a windows interface I don't want to use a list control.

If I fill an arraylist how can I read that data?

Hrcko
 
Hrvoje Voda said:
I want to fill data from dataset into somesort of a list.
Because I don't use a windows interface I don't want to use a list
control.

If I fill an arraylist how can I read that data?

Hrcko

ArrayList arrayList = new ArrayList();

.... add data to array list ....


foreach (object obj in arrayList)
{
MyClass myClass = (MyClass)obj;

.... print out data in myClass ...
}
 

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

Similar Threads

listbox search 1
doc file 3
What is the best way to solve this problem 3
ckecked listbox 4
checked item 1
checked list box 3
Problem with WPF ListBox 5
Access Cannot select items in listbox 1

Back
Top