How can I fill array list with dataReader

S

simon

How can I fill array list with dataReader?

Explain:
I would like to add list box to cache.
I can't add list box itself, but I can add to cache its dataSource.

I usually use dataReader as dataSource for listBox, but I can't add
dataReader to cache.

So I thought that first fill in the array with dataReader, add array to
cache and then use it as dataSource for listBox.


thank you,
Simon
 
M

Martin Dechev

simon said:
How can I fill array list with dataReader?

Explain:
I would like to add list box to cache.
I can't add list box itself, but I can add to cache its dataSource.

I usually use dataReader as dataSource for listBox, but I can't add
dataReader to cache.

So I thought that first fill in the array with dataReader, add array to
cache and then use it as dataSource for listBox.

I think a simple loop will do the job.

Greetings
Martin
 

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