What is a System.Data.RelatedView ?

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,081
Programming Experience
10+
I'm trying to enumerate a BindingSource's list of items. The BindingSource is subject to a relation that is restricting the size of the list from many in the underlying datatable.

In attempting to write:

For Each x as Something in BindingSource.List



I'm having trouble with the Something, because a BindingSource.List in this case is typed to be a System.Data.RelatedView when I run the project and investigate it with the immediate window..

I have never heard of this class, and neither has the IDE so it wouldnt let me cast to it in code.
How do we enumerate a binding source's list in this case?
 
The RelatedView class is declared Friend, so it can only be used by other members of the System.Data namespace. It inherits DataView, so I guess you'd cast as that. I suggest that you download Reflector, which is what I used to see inside the Framework assemblies.
 
Back
Top