|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
PropertyGrid Control - Accessing CollectionsHi,
I have been trying to use the property grid control as a means of editing an object, one of the properties of the objet is a collection of another of my classes. to create the collection i have inherited CollectionBase. When the PropertyGrid is displayed the collection has the elipses as expected, but when i click on this the pop-up editor any try to add a new item to the collection the item is of type System.Object (with no properties) rather than my own object? Any help appriciated Hi,
You need to make a UITypeEditor for that. Take a look at the vbpowerpack for some examples. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbpowerpack.asp Ken --------------- Show quoteHide quote "Mkenney" <mkenney@nomail.nomail> wrote in message news:310C54FD-7FB0-4480-AAFE-F8DB8B64E438@microsoft.com... > Hi, > > I have been trying to use the property grid control as a means of editing > an > object, one of the properties of the objet is a collection of another of > my > classes. to create the collection i have inherited CollectionBase. > > When the PropertyGrid is displayed the collection has the elipses as > expected, but when i click on this the pop-up editor any try to add a new > item to the collection the item is of type System.Object (with no > properties) > rather than my own object? > > Any help appriciated > >
ADO.net + MS Access = performance issues
VB.NET Structures and Union Help. how to group similar events? 2nd Post: Problem adding events to controls created at run-time KeyUp + KeyDown Event Handler Calculate elapsed time Multiple threads using a shared printer resource Problems with ByRef parameters Copying files across network Help needed on creating Shared Directory |
|||||||||||||||||||||||