CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Question Property grid question

    I have a question:

    I use a propery grid for modifyng my objects.
    Now I have object A. Object A has an int x and an object b.
    object A has also a get/set for x (property X) and a Get/Set for b (property B)

    Now i put object A into the property grid. I see the Get/Set property of A in the property grid
    but it seems that the propery B has been disabled. How come? Because i need acces to the properties of object b.

    How can I realise this ?

  2. #2
    Join Date
    Mar 2004
    Location
    33°11'18.10"N 96°45'20.28"W
    Posts
    1,808

    Re: Property grid question

    the property grid has to be aware of how to design your property. native types (int, bool, enums, strings, ...) have designers and type editors already built for them.

    Here's an article that kind of covers how one might go about doing what you need: http://www.codeproject.com/KB/cs/propertyeditor.aspx

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

Featured