gridLookUpEdit字典控件 模糊查询

gridLookUpEdit字典控件 模糊查询

复制代码

this.gridLookUpEdit1.Properties.DataSource = dt;
                    this.gridLookUpEdit1.Properties.DisplayMember = dt.Columns[2].ColumnName;
                    this.gridLookUpEdit1.Properties.ValueMember = dt.Columns[0].ColumnName;
                     
                    this.gridLookUpEdit1.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
                    this.gridLookUpEdit1.Properties.View.BestFitColumns();
                    this.gridLookUpEdit1.Properties.ShowFooter = false;
                    this.gridLookUpEdit1.Properties.View.OptionsView.ShowAutoFilterRow = true; //显示不显示grid上第一个空行,也是用于检索的应用
                    this.gridLookUpEdit1.Properties.AutoComplete = false;
                    this.gridLookUpEdit1.Properties.ImmediatePopup = true;
                    this.gridLookUpEdit1.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
                    this.gridLookUpEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
原文地址:https://www.cnblogs.com/grj001/p/12225154.html