Databinding to multiple controls

G

Guest

Hi,

I'm trying to bind one datareader as a DataSource to two Controls.
But as soon as the first Bind is issued, it gives error that the DR is
already closed....

any help???
 
B

Brock Allen

The DataReader is a forward-only read-only way to access the data. Once the
first control has consumed all the rows, then the data reader is done. I'd
suggest using a DataSet -- it's better for having multiple controls binding
to the same data.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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