//protected override PopupBaseForm CreatePopupForm() //{ // DevExpress.XtraEditors.Popup.PopupLookUpEditForm form1 = new DevExpress.XtraEditors.Popup.PopupLookUpEditForm(this); // form1.ShowQueryButtonEx = form1.Properties.ShowQueryButtonEx; // form1.ShowCloseButtonEx = form1.Properties.ShowCloseButtonEx; // form1.ShowOkButtonEx = form1.Properties.ShowOkButtonEx; // this.Properties.BestAllFit(); // return form1; //} protected override void ProcessText(DevExpress.XtraEditors.Controls.KeyPressHelper helper, bool canImmediatePopup) { // base.ProcessText(helper, canImmediatePopup); tt(helper.Text); //string sInputText = helper.Text; //DevExpress.XtraEditors.ListControls.LookUpListDataAdapter tt = base.PopupForm.Filter as DevExpress.XtraEditors.ListControls.LookUpListDataAdapter; //if (sInputText == "") //{ // tt.FilterExpression = ""; // PopupBaseForm f1 = base.PopupForm as PopupBaseForm; // this.PopupForm.FilterCollectionChanged(this.Properties.DataAdapter, EventArgs.Empty); //} //base.ProcessText(helper, canImmediatePopup); //this.PopupForm.Filter.FilterPrefix = ""; //if (this.Properties.DataAdapter.VisibleCount > 0) //{ // this.PopupForm.SelectedIndex = 0; //} }
protected override void ProcessFindItem(DevExpress.XtraEditors.Controls.KeyPressHelper helper, char pressedKey) { AssignDataSource(AutoSearchText); base.ProcessFindItem(helper, pressedKey); }