ZForge.Controls.XPTable.Editors.DropDownCellEditor.OnLostFocus C# (CSharp) Method

OnLostFocus() protected method

Handler for the editors TextBox.LostFocus event
protected OnLostFocus ( object sender, EventArgs e ) : void
sender object The object that raised the event
e System.EventArgs An EventArgs that contains the event data
return void
        protected virtual void OnLostFocus(object sender, EventArgs e)
        {
            if (this.TextBox.Focused || this.DropDown.ContainsFocus)
            {
                return;
            }

            if (this.EditingTable != null)
            {
                this.EditingTable.StopEditing();
            }
        }