Skip to main content

PopupBaseEdit.RefreshEditValue() Method

Updates the editor’s value by copying a value from the editor’s popup window to BaseEdit.EditValue.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void RefreshEditValue()

Remarks

For the PopupContainerEdit, the RefreshEditValue method fires the PopupContainerEdit.QueryResultValue event. This allows you to update the editor’s edit value when changes are made outside the editor’s popup window.

Example

In this example the PopupContainerEdit uses the PopupContainerControl that holds the GridControl with 5 columns. The second column's value in the selected row is a displayed text for the PopupContainerEdit.Clicking the 'Refresh Edit Value' button adds the 'Add' text to the selected grid cell in the underlying data source. Then the PopupBaseEdit.RefreshEditValue method is called. It instantly updates the editor's value by copying a value from the editor's popup window to BaseEdit.EditValue.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EditValueRefresh
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
    }
}
See Also