protected override void OnDropDownFormCreated(DropDownForm dropDownForm) { if (_currencyManager != null) { Find(EditValue); dropDownForm.BindingContext[_dataGrid.DataSource].Position = _currencyManager.Position; } base.OnDropDownFormCreated(dropDownForm); }
private DropDownForm CreateDropDownForm() { DropDownForm form = new DropDownForm(this, _dropDownControl); form.TopMost = true; form.FormBorderStyle = FormBorderStyle.None; form.Owner = (Form)ControlHelper.GetParentForm(this); form.StartPosition = FormStartPosition.Manual; form.KeyPreview = true; form.Size = CalulateDropDownSize(); form.MinimumSize = new Size(Width, 100); new FocusEmulator(form.Owner); OnDropDownFormCreated(form); return(form); }
public void ShowDropDown() { if (!_isDropDownVisible) { _dropDownForm = CreateDropDownForm(); WireDropDownFormEvents(); PositionDropDownHolder(_dropDownForm); _dropDownForm.Show(); _isDropDownVisible = true; } else { CloseDropDown(false, true); } }
protected virtual void OnDropDownFormCreated(DropDownForm dropDownForm) { }