custom collections

  • 10 years ago

    hi all,

    I have an issue I  don't know how to solve: I use a custom collection as datasource for a datagrid. here are my classes:

    class A

    { private _mB as CollectionB

    public property BProperty


        return new CollectionB

     End Get


    class B {...}

    class  CollectionB {Inherits CollectionBase....} - collection of B objects

    class CollectionA {Inherits CollectionBase....} - collection of A objects

    class CollectionA is the datasource for my grid. the problem is I don't see all the properties of the object A in my grid, including BProperty. How do I get to have a reference to the CollectionB object? Is it necessary for any of my classes to implement ICustomTypeDescriptor?


    Any help will be appreciated!




Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond