How can I fill array list with dataReader

  • Thread starter Thread starter simon
  • Start date Start date
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
 
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
 
Back
Top