propertygridwpf-extended-toolkit

Xceed PropertyGrid: How to Hide Fully Qualified Name for ExpandableObject


In Xceed's Extended Toolkit PropertyGrid, how do I hide the fully-qualified name of the expandable object? (see screenshot below)

Screenshot of ExpandableObject example from Xceed documentation


Solution

  • you can override the ToString() method on your expandable object.

    public override string ToString()
    {
      return this.FirstName + " " + this.LastName;
    }