Exemple #1
0
 private void OnGotFocus(object sender, EventArgs e)
 {
     (sender as Control).BeginInvoke(new MethodInvoker(delegate
     {
         PopupBaseEdit editor = sender as PopupBaseEdit;
         if (editor.IsPopupOpen)
         {
             editor.ClosePopup();
             editor.ShowPopup();
         }
     }));
 }
Exemple #2
0
        private void grvrootmuahang_ShownEditor(object sender, EventArgs e)
        {
            GridView view = sender as GridView;

            if (view.FocusedColumn.FieldName == "Mã Hàng")
            {
                PopupBaseEdit edit = view.ActiveEditor as PopupBaseEdit;
                if (edit == null)
                {
                    return;
                }
                view.GridControl.BeginInvoke(new MethodInvoker(() => { edit.ShowPopup(); }));
            }
        }