Target Platform/Framework: Desktop DevExpress Product Libraries Used: WPF UI components (https://www.devexpress.com/wpf) Available in the following DevExpress Subscription(s): Universal, DXperience, WPF, Reporting
Install
| Product | Versions |
|---|---|
| .NET | |
| Other |
README
DevExpress WPF Property Grid
DevExpress.Wpf.PropertyGrid includes the DevExpress WPF Property Grid control. The PropertyGridControl displays public properties of a business object and generates an appropriate in-place editor for each one.
dotnet add package DevExpress.Wpf.PropertyGrid
Key Features
- Automatic Editor Generation: Assign a business object to
SelectedObjectand the control creates a suitable editor for every property. - Categories: Group properties into categories with
CategoryDefinition, control category display withShowCategories, and expand them automatically withExpandCategoriesWhenSelectedObjectChanged. - Explicit Property Definitions: Declare
PropertyDefinitionelements to specify which properties appear, their order, and their editors. - Attribute Support: Use standard .NET and Data Annotation attributes to assign captions, categories, and validation rules in the model.
- Descriptions: Display a property description panel and specify its position with
ShowDescriptionIn. - Expandable Properties: Expand and collapse nested objects and collections.
- Tabbed Presentation: Split properties across tabs instead of a single flat list.
- Data Editors: Use the full range of DevExpress WPF editors as in-place editors.
Examples
Example: Inspect an Object
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxprg="http://schemas.devexpress.com/winfx/2008/xaml/propertygrid">
<dxprg:PropertyGridControl SelectedObject="{Binding Employee}"
ShowCategories="True">
<!-- Explicit definitions limit and order the displayed properties. -->
<dxprg:PropertyDefinition Path="FirstName" />
<dxprg:PropertyDefinition Path="LastName" />
<dxprg:PropertyDefinition Path="HireDate" />
</dxprg:PropertyGridControl>
</Window>
In this configuration, the control behaves as follows:
- Displays three properties of the bound object and edits them in place
- Groups properties into categories
- Selects an editor based on each property's type
Evaluation Period, Pricing Options, and Licensing Terms
Whether you own a license or want to start a 30-day evaluation period, download and register your DevExpress license key. To obtain your key, log in to the DevExpress Download Manager. Use your existing DevExpress.com account or create a new account for free. For key registration instructions, see License Key for DevExpress Products.
If you purchase a license after evaluating a product, re-register your updated DevExpress license key to remove evaluation version warnings/messages.
This package is included in the following commercial subscriptions:
See DevExpress Subscriptions & Licensing for subscription comparison tables, purchasing FAQ, and licensing information.
Related Components/Packages
DevExpress.Wpf.Core - DevExpress WPF data editors and core libraries.
dotnet add package DevExpress.Wpf.Core
DevExpress.Wpf.LayoutControl - DevExpress WPF Layout containers for data entry forms.
dotnet add package DevExpress.Wpf.LayoutControl
DevExpress.Wpf - The complete DevExpress WPF Control suite.
dotnet add package DevExpress.Wpf
Demos
NOTE: Demo links below only work if you already have DevExpress WPF Demos installed on your machine. To install demos, download and run the DevExpress Unified Installer (evaluation or licensed version). Remember to select "Demo Applications" on the product selection screen.
- DevExpress WPF Property Grid - Selected Item Editing
- DevExpress WPF Property Grid - Data Editors
- DevExpress WPF Property Grid - Tabbed View
- DevExpress WPF Property Grid - Category Attributes
Documentation
Software Bill of Materials (SBOM)
To access SBOM files for DevExpress packages, please refer to the following article: Software Bill of Materials (SBOM) for DevExpress .NET assemblies/NuGet packages, JavaScript, VCL and other redistributable artifacts.
See Also: Information Security | Security - What You Need to Know
Useful Online Resources
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.