示例#1
0
        public static void SwitchFocus(BuzzleGlobalView thisForm, DevExpress.XtraGrid.Views.Grid.GridView gridView = null)
        {
            if (thisForm.ActiveControl != null)
                thisForm.ActiveControl.SelectNextControl(thisForm.ActiveControl, true, true, false, true);
            else
                thisForm.SelectNextControl(thisForm, true, true, true, true);

            if (gridView != null)
            {
                gridView.CloseEditor();
                gridView.UpdateCurrentRow();
            }
        }