Back to Devexpress

PropertyGridRowBaseEventArgs.Value Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridrowbaseeventargs-eca8043a.md

latest2.5 KB
Original Source

PropertyGridRowBaseEventArgs.Value Property

Gets a row’s value.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public object Value { get; }
vb
Public ReadOnly Property Value As Object

Property Value

TypeDescription
Object

A row’s value.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value 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-property-grid-specify-custom-collection-edit-actions/CS/MainWindow.xaml.cs#L25

csharp
var issueView = propertyGrid.SelectedObject as IssueView;
var issue = e.Value as Issue;
if (issue != null && issueView != null && !string.Equals(issue.Owner, issueView.UserName))

wpf-property-grid-specify-custom-collection-edit-actions/VB/MainWindow.xaml.vb#L19

vb
Dim issueView = TryCast(Me.propertyGrid.SelectedObject, IssueView)
Dim issue = TryCast(e.Value, Issue)
If issue IsNot Nothing AndAlso issueView IsNot Nothing AndAlso Not String.Equals(issue.Owner, issueView.UserName) Then e.IsVisible = False

See Also

PropertyGridRowBaseEventArgs Class

PropertyGridRowBaseEventArgs Members

DevExpress.Xpf.PropertyGrid Namespace