Results 1 to 5 of 5

Thread: [RESOLVED] [2008] Sorting ExpandableObjectConvertor properties?

  1. #1

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Resolved [RESOLVED] [2008] Sorting ExpandableObjectConvertor properties?

    I'm specifying the ExpandableObjectConvertor TypeConvertor for some properties of my custom Panel.

    I have expanded properties called "StartColor" and "EndColor." It makes sense to want to have "StartColor" listed first but they are shown in alphabetical order thereby displaying "EndColor" first.

    What I'm wondering is this: can I specifiy the order of the expanded custom properties in the PropertyGrid?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Sorting ExpandableObjectConvertor properties?

    The PropertyGrid always sorts alphabetically. Even when grouped it sorts alphabetically within each group.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [2008] Sorting ExpandableObjectConvertor properties?

    Quote Originally Posted by jmcilhinney
    The PropertyGrid always sorts alphabetically. Even when grouped it sorts alphabetically within each group.
    Fair enough. That's what I expected.

    EDIT: And, of course, after a day of trying to do this and posting on the forum, I find something immediately that looks promising:
    http://www.syncfusion.com/faq/window...search/28.aspx
    Last edited by nmadd; Aug 29th, 2008 at 07:41 AM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Sorting ExpandableObjectConvertor properties?

    Cool. I learned something too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [2008] Sorting ExpandableObjectConvertor properties?

    Yes, very cool! After some testing, it works just fine.
    Last edited by nmadd; Aug 29th, 2008 at 11:33 AM.

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