Back to Devexpress

CellEditorData.Value Property

corelibraries-devexpress-dot-mvvm-dot-celleditordata.md

latest3.2 KB
Original Source

CellEditorData.Value Property

Gets or sets a value that the editor contains.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Object

A value that the editor contains.

|

The following code snippets (auto-collected from DevExpress Examples) contain references 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-data-grid-edit-form-related-cells/CS/SynchronizeEditValuesInEditForm_CodeBehind/MainWindow.xaml.cs#L53

csharp
int.TryParse((string)e.Value, out price);
    positionValueData.Value = (int)amountData.Value * price;
}

wpf-data-grid-specify-edit-form-settings/CS/DefineEditFormSettings_MVVM/MainViewModel.cs#L26

csharp
if(args.IsNewItem) {
    args.CellEditors[0].Value = Employees.Count + 1;
    args.CellEditors[4].ReadOnly = true;

wpf-data-grid-edit-form-related-cells/VB/SynchronizeEditValuesInEditForm_CodeBehind/MainWindow.xaml.vb#L59

vb
Call Integer.TryParse(CStr(e.Value), price)
    positionValueData.Value = CInt(amountData.Value) * price
End If

wpf-data-grid-specify-edit-form-settings/VB/DefineEditFormSettings_MVVM/MainViewModel.vb#L83

vb
If args.IsNewItem Then
    args.CellEditors(0).Value = Employees.Count + 1
    args.CellEditors(4).ReadOnly = True

See Also

CellEditorData Class

CellEditorData Members

DevExpress.Mvvm Namespace