Results 1 to 2 of 2

Thread: Implements ItypedList - but how?

  1. #1

    Thread Starter
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616

    Implements ItypedList - but how?

    I have a collection which I wish to use as a databinding source. Therefore in the collection I have:
    VB Code:
    1. Public Class MyTypedCollection
    2.  
    3.     Inherits Collections.DictionaryBase
    4.     Implements ITypedList
    5.  
    6. End Class

    But ITypedList has two required functions and I really don't understand the documentation...what should go in:
    VB Code:
    1. Function GetListName(ByVal listAccessors() As PropertyDescriptor) As String Implements ITypedList.GetListName
    2.         '\\ what goes here?
    3.     End Function
    4.  
    5.     Function GetItemProperties(ByVal listAccessors() As PropertyDescriptor) As PropertyDescriptorCollection Implements ITypedList.GetItemProperties
    6.         '\\ What goes here as well?
    7.     End Function
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    If you don't need them, you can just create a variable and return it. From the sound of it, you won't need it if you don't know what they do... That is my only recommendation because I don't know either.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width