Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CellEditorPresenter.PathMode Property

Specifies whether the CellEditorPresenter.Path property represents an absolute path or a path relative to the parent PropertyDefinition. This is a dependency property.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

#Declaration

public CellEditorPresenterPathMode PathMode { get; set; }

#Property Value

Type Description
CellEditorPresenterPathMode

A CellEditorPresenterPathMode enumeration value that specifies whether the CellEditorPresenter.Path property represents a relative path or an absolute path. The default is CellEditorPresenterPathMode.Relative.

Available values:

Name Description
Absolute

The CellEditorPresenter.Path points to a property of the PropertyGridControl.SelectedObject.

Relative

The CellEditorPresenter.Path points to a property of an object associated with the parent PropertyDefinition.

#Remarks

Use the PathMode property to specify whether the CellEditorPresenter.Path property represents a relative path or an absolute path.

Relative path points to a property of an object associated with the parent PropertyDefinition.

Absolute path points to a property of the PropertyGridControl.SelectedObject.

The following example demonstrates the difference between absolute and relative property paths.

public class Person {
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public Address Address { get; set; }
    public string Phone { get; set; }
}
public class Address {
    public string AddressLine1 { get; set; }
    public string AddressLine2 { get; set; }
}
See Also