Databinding to multiple controls

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