I am trying to get a combobox to display multiple fields.
private void PopulateReasonComboBox()
{
// 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 = "ReasonType = 'S' and Scrap = TRUE";
System.Data.DataSet dsReasonAdapter = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "ReasonAdapter", out recSelected, false, whereClause);
if (recSelected)
{
// Set EpiUltraCombo Properties
this.ucbReasonCd.ValueMember = "ReasonCode";
this.ucbReasonCd.DataSource = dsReasonAdapter;
this.ucbReasonCd.DisplayMember = "Description";
string[] fields = new string[] {"Description"};
this.ucbReasonCd.SetColumnFilter(fields);
}
//ucbReasonCd.ReadOnly = true;
}
Instead of displaying just Description, I’d like to display ReasonCode | Description
(i.e. S01 | Overshipment)
this.ucbReasonCd.DisplayMember = "Description";
changed to
this.ucbReasonCd.DisplayMember = "ReasonCode | Description";
Any help will be appreciated.