Reputation: 11
How do I use a WinForms PropertyGrid so that no categories are displayed? The clip below from Visual Studio is an example of what I'm looking for. If I don't add a CategoryAttribute or use null for the category, it creates a "Misc" category. If I use " ", no category name is displayed (expected), but I still get the collapsible indent.
[1]: https://i.sstatic.net/DkjQn.png
Upvotes: 0
Views: 698
Reputation: 167
You have to set the PropertyGrid.PropertySort
to Alphabetical
, which is just similar to the VS property window image you have attached, which then selects the 'alphabetical' icon. Also, if you want to hide the choice for categorized or alphabetical, you can choose to set ToolbarVisible
to false
.
Upvotes: 2