0

Hello

I have a similar problem like this one

http://bytes.com/forum/thread253914.html

the only difference is that I cant access the control DataAdapter.

I have like 4 DataAdapters on my Form and I need to access them through a loop to change some of their properties.

How can i acomplish that?

Thank in advance

2
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by Branimir Corluk
0
for (int i = 0; i < this.Controls.Count; i++)
{
temp = this.Controls[i].Name;
}

Doesnt find the DataAdapter Control. It isnt in Controls.

So how can I access all the DataAdapter Controls on my Form?

Thanks in advance

0

As it says, dataadapters DONT show on the controls list. nor do they show on the components list (components do show some of the non visible elements)

The obvious way would be to either name your dataadapters or, make an array/List of them so you can walk them if you make some on the fly.

0

OK , I did thought of the array, but I hoped that there would be a build in solution.

thx

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.