Dynamic Expandable Properties.

4 posts, 0 answers
  1. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 19 Nov 2014 Link to this post

    I have a class with 32 properties. When i use the  TypeConverter(typeof(ExpandableObjectConverter)) it displays all the properties under the expandable name of the object which is perfect. But some of my project will have less than 32 properties. So i want to be able to dynamically remove/add attributes and have them displayed in the property grid as expandable. So is that something that is possible to do with the PropertyGrid. If that is not possible, is there a way to do this with ICollection object that i can just pass as a dataSource.

    Thanks.
  2. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 19 Nov 2014 in reply to Hugues Link to this post

    I figure it out. 

    I am using the  CreateItemElement to figure out which item to make visible.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 19 Nov 2014 Link to this post

    How do you dynamically modify an name on the property grid.
  5. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 19 Nov 2014 in reply to Hugues Link to this post

    I figure that one too.

    Thanks,
    Jerome.
Back to Top