Property grid order

Posted by: kisar on 12 November 2020, 9:10 pm EST

    • Post Options:
    • Link

    Posted 12 November 2020, 9:10 pm EST

    Hi,

    is it possible order the property grid different than alphabetic?

    is it now possible hide password characters?

    Thanx

  • Posted 16 November 2020, 10:57 pm EST

    Hi Kisar,

    1) Sort Order: C1PropertyGrid provides various Sorting behaviors by using PropertySort property. If you need to specify custom sort order, you can set PropertySort = Custom and use Display(.Order) attribute on property to specify the order explicitly:

    propGrid.PropertySort = C1.WPF.Extended.PropertySort.Custom;
    
    [Display(Order = 5)]
    public DateTime DOB { get; set; }
    

    For a set of supported Property Grid attributes, you can refer to ‘https://www.grapecity.com/componentone/docs/wpf/online-extended/SupportedPropertyGridAttributes.html?highlight=sort%2C’.

    2) Password Editor: Passwords are generally strings and for string types, C1PropertyGrid uses StringEditor (Textbox). So, we need to create a custom editor for passwords that will display PasswordBox as an editor. For details, you can refer to ‘https://www.grapecity.com/componentone/docs/wpf/online-extended/CreatingCustomEditors.html’.

    Please refer to the attached sample for the above implementations.

    Regards,

    Basant

    SortPropertyGrid.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels