*Experts* Merrion Posted April 15, 2003 *Experts* Posted April 15, 2003 I have a collection which I wish to use as a databinding source. Therefore in the collection I have: Public Class MyTypedCollection Inherits Collections.DictionaryBase Implements ITypedList End Class But ITypedList has two required functions and I really don't understand the documentation...what should go in: Function GetListName(ByVal listAccessors() As PropertyDescriptor) As String Implements ITypedList.GetListName '\\ what goes here? End Function Function GetItemProperties(ByVal listAccessors() As PropertyDescriptor) As PropertyDescriptorCollection Implements ITypedList.GetItemProperties '\\ What goes here as well? End Function Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
*Gurus* Derek Stone Posted April 16, 2003 *Gurus* Posted April 16, 2003 It's my understanding, if I remember correctly, that GetItemProperties should return the actual properties to be bound to. Say for instance you had a DataView-- you wouldn't want to bind to its properties, but instead bind to the properties of the DataTable it contains. With a simple collection though I don't understand why you would need to implement this. IList would be the more appropriate choice. Quote Posting Guidelines
*Experts* Merrion Posted April 16, 2003 Author *Experts* Posted April 16, 2003 It's not really a simple collection - I am overstating that part of things...it is a DictionaryBase derived collection of PrintJobs which have readonly, conditional read/write and should not be bound properties... Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.