WebPropertyGrid for ASP.NET MVC
Computer Specification
 Loading WebPropertyGrid... 
  Reset
Property Sorting:
WebPropertyGrid supports the following property sorting options:

WebPropertyGrid.PropertySort(PropertySort.Categorized)

With the above option, properties are displayed according to their category in a group. The categories are defined by the properties themselves. This setting can be demonstrated in this sample by clicking on the first "Categorized" button in the WebPropertyGrid title.

WebPropertyGrid.PropertySort(PropertySort.Alphabetical)

With the above option, properties are sorted in an alphabetical list. This setting can be demonstrated in this sample by clicking on the second "A - Z" button in the WebPropertyGrid title.

WebPropertyGrid.PropertySort(PropertySort.CategorizedAlphabetical)

With the above option, properties are displayed according to their category in a group. The categories are defined by the properties themselves. The properties are further sorted alphabetically within the group.

WebPropertyGrid.PropertySort(PropertySort.NoSort)

With the above option, properties are displayed in the order in which they are retrieved.

Pressing the "Submit" button simulates saving the form data by writing the results below:
Hard Drive = 1 TB
Memory = 4 GB
Operating System = Windows 7
Optical Drive = CD/DVD Burner
Processor = Intel Core i3
Productivity Application = Office Trial
Security Protection = Avast
Video Card = NVIDIA
Click the "Reset" link to restore the default values.
Control being used:
Coalesys WebPropertyGrid for ASP.NET Core MVC
Version 1.0 - Build 130 (Licensed)
Designed for ASP.NET Core MVC 8.0 (64-bit)
Copyright (c) 2000-2024 Coalesys, Inc.
View the code:
The code is available in the samples directory under:
/BasicFeatures
    /PropertySorting