cerberus
cerberus

Reputation: 422

Set PropertyGrid default view to "category view"

How can I set PropertyGrid's view to "Category View" programmatically or in design-time?
I just can do it in run-time by clicking a button on the PropertyGrid's toolbar.

Upvotes: 2

Views: 366

Answers (1)

Reza Aghaei
Reza Aghaei

Reputation: 125292

You can set PropertySort property of your property grid to Categorized or CategorizedAlphabetical at design-time or by code:

this.propertyGrid1.PropertySort = PropertySort.Categorized;

enter image description here

Upvotes: 1

Related Questions