windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-queryresultvalueeventargs.md
Gets or sets the editor value.
Namespace : DevExpress.XtraEditors.Controls
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public object Value { get; set; }
Public Property Value As Object
| Type | Description |
|---|---|
| Object |
An object specifying editor value.
|
Initially the Value property specifies the old edit value, i.e. the edit value provided by the editor before opening the popup window. You can change the Value property in order to specify another edit value for the editor with respect to the state of controls within the popup window. The specified value is assigned to the editor’s BaseEdit.EditValue property.
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.
winforms-gridlookupedit-multiple-item-selection/CS/Form1.cs#L58
string csv = String.Join(", ", values);
e.Value = csv;
}
winforms-grid-display-edit-rtf-data/CS/Form1.cs#L73
{
e.Value = richEditControl.Document.RtfText;
}
winforms-popup-container-edit-with-default-ok-button/CS/MainForm.cs#L22
{
e.Value = buttonEdit1.EditValue;
}
winforms-create-editable-grid-lookup/CS/PopupContainerEditSelection/Form1.cs#L36
{
e.Value = gridView1.GetFocusedRowCellValue("Fruit");
}
winforms-grid-popupcontaineredit/CS/WindowsFormsApplication7/Form1.cs#L28
{
e.Value = memoEdit1.EditValue;
}
winforms-gridlookupedit-multiple-item-selection/VB/Form1.vb#L53
Dim csv As String = String.Join(", ", values)
e.Value = csv
End Sub
winforms-grid-display-edit-rtf-data/VB/Form1.vb#L62
Private Sub riPopup_QueryResultValue(ByVal sender As Object, ByVal e As QueryResultValueEventArgs)
e.Value = richEditControl.Document.RtfText
End Sub
winforms-popup-container-edit-with-default-ok-button/VB/MainForm.vb#L17
Private Sub popupContainerEditOKButtonpopupContainerEditOKButtonForTest_Properties_QueryResultValue(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.QueryResultValueEventArgs)
e.Value = buttonEdit1.EditValue
End Sub
winforms-create-editable-grid-lookup/VB/PopupContainerEditSelection/Form1.vb#L28
Private Sub popupContainerEdit1_QueryResultValue(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.QueryResultValueEventArgs)
e.Value = gridView1.GetFocusedRowCellValue("Fruit")
End Sub
winforms-grid-popupcontaineredit/VB/WindowsFormsApplication7/Form1.vb#L23
Private Sub repositoryItemPopupContainerEdit1_QueryResultValue(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.QueryResultValueEventArgs)
e.Value = memoEdit1.EditValue
End Sub
See Also
QueryResultValueEventArgs Class