Loop through all dataadapters

S

Steve C. Orr, MCSD

If you drop them onto your form at design time then it may be possible to
loop through the controls collection and then work with each control where
the TypeOf var Is System.Data.SQLClient.DataAdapter.
If you create them at runtime then they wouldn't be in the controls
collection. Instead you'd have to add them to a collection of your own and
then loop through that.
 
V

Vik

Thanks.

Which controls collection contains the dataadapters added at design time? It
seems the dataadapters are not a part of a page's controls.

Vik
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top