private void BindPage() { //System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); ACMSLogic.StockInventory.SearchInventory si = new ACMSLogic.StockInventory.SearchInventory(); this.lookUpEdit1.Properties.DataSource = si.SearchItemCode(); //this.lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; this.lookUpEdit1.Properties.ValueMember = "strProductCode"; this.lookUpEdit1.Properties.DisplayMember = "strProductCode"; //add two columns in the dropdown LookUpColumnInfoCollection coll = lookUpEdit1.Properties.Columns; //a column to display values of the ProductID field coll.Add(new LookUpColumnInfo("strProductCode", "Item Code", 100)); //a column to display values of the ProductName field //set column widths according to their contents lookUpEdit1.Properties.BestFit(); //specify the total dropdown width lookUpEdit1.Properties.PopupWidth = 100; }
private void BindPage() { ACMSLogic.StockInventory.SearchInventory si = new ACMSLogic.StockInventory.SearchInventory(); this.lookUpEdit1.Properties.DataSource = si.SearchItemDescription(); //this.lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; this.lookUpEdit1.Properties.ValueMember = "strDescription"; this.lookUpEdit1.Properties.DisplayMember = "strDescription"; this.lookUpEdit1.EditValue = "Select Description"; this.lookUpEdit1.Text = "Select Description"; //add two columns in the dropdown LookUpColumnInfoCollection coll = lookUpEdit1.Properties.Columns; //a column to display values of the ProductID field coll.Add(new LookUpColumnInfo("strDescription", "Item Description", 100)); //a column to display values of the ProductName field //set column widths according to their contents //lookUpEdit1.Properties.BestFit(); //specify the total dropdown width lookUpEdit1.Properties.PopupWidth = 300; }
private void BindPage() { //System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); //Rp.ProductRepository pr = new Rp.ProductRepository(); //IList list = pr.Find("select distinct s.Id from Product p inner join p.Style s"); ACMSLogic.StockInventory.SearchInventory si = new ACMSLogic.StockInventory.SearchInventory(); this.lookUpEdit1.Properties.DataSource = si.SearchStyle(); //this.lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; this.lookUpEdit1.Properties.ValueMember = "strStyleCode"; this.lookUpEdit1.Properties.DisplayMember = "strStyleCode"; this.lookUpEdit1.EditValue = "Select Style"; this.lookUpEdit1.Text = "Select Style"; //add two columns in the dropdown LookUpColumnInfoCollection coll = lookUpEdit1.Properties.Columns; //a column to display values of the ProductID field coll.Add(new LookUpColumnInfo("strStyleCode", "Style Code", 4)); coll.Add(new LookUpColumnInfo("strDescription", "Style Description", 50)); //a column to display values of the ProductName field //set column widths according to their contents lookUpEdit1.Properties.BestFit(); //specify the total dropdown width lookUpEdit1.Properties.PopupWidth = 300; //enable auto completion search mode //lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; //the column against which to perform the search lookUpEdit1.Properties.AutoSearchColumnIndex = 0; //this.cbSearchStyle.DataSource = list; }
private void BindPage() { //System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); //Rp.ProductRepository pr = new Rp.ProductRepository(); //IList list = pr.Find("select distinct s.Id from Product p inner join p.Style s"); ACMSLogic.StockInventory.SearchInventory si = new ACMSLogic.StockInventory.SearchInventory(); this.lookUpEdit1.Properties.DataSource = si.SearchStyle(); //this.lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; this.lookUpEdit1.Properties.ValueMember = "strStyleCode"; this.lookUpEdit1.Properties.DisplayMember = "strStyleCode"; this.lookUpEdit1.EditValue="Select Style"; this.lookUpEdit1.Text="Select Style"; //add two columns in the dropdown LookUpColumnInfoCollection coll = lookUpEdit1.Properties.Columns; //a column to display values of the ProductID field coll.Add(new LookUpColumnInfo("strStyleCode","Style Code",4)); coll.Add(new LookUpColumnInfo("strDescription","Style Description",50)); //a column to display values of the ProductName field //set column widths according to their contents lookUpEdit1.Properties.BestFit(); //specify the total dropdown width lookUpEdit1.Properties.PopupWidth = 300; //enable auto completion search mode //lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; //the column against which to perform the search lookUpEdit1.Properties.AutoSearchColumnIndex = 0; //this.cbSearchStyle.DataSource = list; }
private void BindPage() { ACMSLogic.StockInventory.SearchInventory si = new ACMSLogic.StockInventory.SearchInventory(); this.lookUpEdit1.Properties.DataSource = si.SearchItemDescription(); //this.lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; this.lookUpEdit1.Properties.ValueMember = "strDescription"; this.lookUpEdit1.Properties.DisplayMember = "strDescription"; this.lookUpEdit1.EditValue="Select Description"; this.lookUpEdit1.Text="Select Description"; //add two columns in the dropdown LookUpColumnInfoCollection coll = lookUpEdit1.Properties.Columns; //a column to display values of the ProductID field coll.Add(new LookUpColumnInfo("strDescription","Item Description",100)); //a column to display values of the ProductName field //set column widths according to their contents //lookUpEdit1.Properties.BestFit(); //specify the total dropdown width lookUpEdit1.Properties.PopupWidth = 300; }
private void BindPage() { //System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); ACMSLogic.StockInventory.SearchInventory si = new ACMSLogic.StockInventory.SearchInventory(); this.lookUpEdit1.Properties.DataSource = si.SearchItemCode(); //this.lookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete; this.lookUpEdit1.Properties.ValueMember = "strProductCode"; this.lookUpEdit1.Properties.DisplayMember = "strProductCode"; //add two columns in the dropdown LookUpColumnInfoCollection coll = lookUpEdit1.Properties.Columns; //a column to display values of the ProductID field coll.Add(new LookUpColumnInfo("strProductCode","Item Code",100)); //a column to display values of the ProductName field //set column widths according to their contents lookUpEdit1.Properties.BestFit(); //specify the total dropdown width lookUpEdit1.Properties.PopupWidth = 100; }