I guess I mis-understood. I thought you wanted more than one column. The UltraCombo is for multiple columns. When I only want one, I tend to use the epiCombo. Having said that… In customization properties you should see “Col1ManualWidth†etc under “Miscâ€. I set the ones I don’t want to show to 0.
Brenda
From:
vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, May 15, 2014 12:35 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] EpiUltraCombo showing several columns
Thank you Brenda,
I'm not a code person, so looking at this, I'm not seeing any difference between what you have and what I have except you are displaying 2 fields. I'm pasting my code:
private void SearchOnManufacturerAdapterFillDropDown()
{
// Wizard Generated Search Method
// You will need to call this method from another method in custom code
// For example, [Form]_Load or [Button]_Click
bool recSelected;
string whereClause = string.Empty;
System.Data.DataSet dsManufacturerAdapter = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "ManufacturerAdapter", out recSelected, false, whereClause);
if (recSelected)
{
// Set EpiUltraCombo Properties
this.EUCManufacturer.ValueMember = "MfgID";
this.EUCManufacturer.DataSource = dsManufacturerAdapter;
this.EUCManufacturer.DisplayMember = "Name";
string[] fields = new string[] {
"Name"};
this.EUCManufacturer.SetColumnFilter(fields);
}
}
private void EUCManufacturer_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
// ** Place Event Handling Code Here **
SearchOnManufacturerAdapterFillDropDown();