PropertyDefinition.CellTemplate Property
Gets or sets the template that defines the presentation of data cells. This is a dependency property.
Namespace: DevExpress.Xpf.PropertyGrid
Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PropertyGrid
#Declaration
public DataTemplate CellTemplate { get; set; }
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Remarks
When using CellTemplate note the following:
- To enable data editing, use an editor shipped with the DevExpress WPF Data Editors Library. The editor’s Name must be set to ‘PART_Editor‘.
- An in-place editor specified via PropertyDefinition.EditSettings is ignored.
The following example demonstrates how to use the CellTemplate property to specify the required editor for a property grid cell.
public class ViewModel {
public string Name { get; set; }
public string Notes { get; set; }
public ViewModel() {
Name = "Andrew Fuller";
Notes = "Andrew received his BTS commercial in 1974 and a Ph.D.
in international marketing from the University of Dallas in 1981.";
}
}
To learn more, see Appearance Customization.
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CellTemplate property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.