Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
In my custom control, I have added a custom property which again derived from another custom class with a number of porperties. In the Property sheet, it shows well but without expanding its contents. I would like to keep it alawys expanded. How is it possible? Thanks in advance.

VB
DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
TypeConverter(GetType(HighlighterConverter))> _
Public Property Highlighter() As Highlighter
            Get
                Return Highlighter_v
            End Get
            Set(ByVal value As Highlighter)
                Highlighter_v = value
            End Set
        End Property
Private Highlighter_v As New Highlighter
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jan-15 12:18pm    
"Custom property"... Do you think they can be custom and not custom?
Now, what's the problem. Do you need to have property expandable (this is possible, needs considerable effort if it is not already expandable), or, as you say, expanded, which means expanding the existing tree node automatically (which I think you cannot do, with existing PropertyGrid)?
—SA

1 solution

Dear SA,
Thank you for your response and yes, acutally the second option you have mentioned (expanding the existing tree node automatically) is my prime need. Perhaps you are right. I cannot manage it with Property Grid.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900