Back to Devexpress

QueryResultValueEventArgs.Value Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-queryresultvalueeventargs.md

latest5.7 KB
Original Source

QueryResultValueEventArgs.Value Property

Gets or sets the editor value.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Object

An object specifying editor value.

|

Remarks

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

csharp
string csv = String.Join(", ", values);
    e.Value = csv;
}

winforms-grid-display-edit-rtf-data/CS/Form1.cs#L73

csharp
{
    e.Value = richEditControl.Document.RtfText;
}

winforms-popup-container-edit-with-default-ok-button/CS/MainForm.cs#L22

csharp
{
    e.Value = buttonEdit1.EditValue;
}

winforms-create-editable-grid-lookup/CS/PopupContainerEditSelection/Form1.cs#L36

csharp
{
    e.Value = gridView1.GetFocusedRowCellValue("Fruit");
}

winforms-grid-popupcontaineredit/CS/WindowsFormsApplication7/Form1.cs#L28

csharp
{
    e.Value = memoEdit1.EditValue;
}

winforms-gridlookupedit-multiple-item-selection/VB/Form1.vb#L53

vb
Dim csv As String = String.Join(", ", values)
    e.Value = csv
End Sub

winforms-grid-display-edit-rtf-data/VB/Form1.vb#L62

vb
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

vb
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

vb
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

vb
Private Sub repositoryItemPopupContainerEdit1_QueryResultValue(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.QueryResultValueEventArgs)
    e.Value = memoEdit1.EditValue
End Sub

See Also

QueryResultValue

QueryResultValueEventArgs Class

QueryResultValueEventArgs Members

DevExpress.XtraEditors.Controls Namespace