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.v20.1.dll

Declaration

public virtual void RefreshEditValue()
Public Overridable Sub 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.

Examples

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