wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertydefinitionbase.md
Gets or sets the path to the database field associated with current property definition. This is a dependency property.
Namespace : DevExpress.Xpf.PropertyGrid
Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PropertyGrid
public string Path { get; set; }
Public Property Path As String
| Type | Description |
|---|---|
| String |
A String value that specifies the name of a data field.
|
The Path property specifies the path relative to the parent definition.
A collection property that is bound to a null object is not shown within the property grid.
Note
Do not bind multiple properties to the same field in the data base. Only a single property can be bound to a specific field in the database.
The asterisk * character works as a placeholder for a property name. A property definition whose Path contains a placeholder has a lower priority than a definition with an explicit Path.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Path 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.
wpf-propertygrid-add-an-item-to-a-collection-or-a-dictionary/CS/Collections/MainWindow.xaml#L24
<dxprg:CollectionDefinition Path="Suppliers"
NewItemInitializer="{StaticResource xamlInitializer}" >
wpf-property-grid-apply-data-annotation-attributes/CS/MainWindow.xaml#L15
<DataTemplate x:Key="ImageTemplate">
<dxprg:PropertyDefinition Path="Photo" AllowExpanding="Never">
<dxprg:PropertyDefinition.CellTemplate>
See Also