Print Page | Close Window

Two-column Infragistics ComboBox

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=141
Printed Date: 07-Nov-2025 at 8:47am


Topic: Two-column Infragistics ComboBox
Posted By: Customer
Subject: Two-column Infragistics ComboBox
Date Posted: 12-Jul-2007 at 11:02am
I want a multi-column dropdown. Infragistics has the UltraCombo. My problem, is while I can set the DisplayMember and the ValueMember in the listconverter, I do not know how to tell the control what columns (UltraGrid), to use in the dropdown.



Replies:
Posted By: IdeaBlade
Date Posted: 12-Jul-2007 at 11:03am
http://www.ideablade.com/forum/uploads/20070712_171810_Infragistics_Ne.zip -  
 
I don't know if this is the only way, or the best way, but it works.  In this example, the Display Name is "FullName".  When the dropdown occurs, the dropdown grid shows "FirstName" in the first column and "LastName"in the second column.
 
Here is the code
 
http://www.ideablade.com/forum/uploads/20070712_172217_Infragistics_Ne.zip - uploads/20070712_172217_Infragistics_Ne.zip .
 
 
All you need to do is add an Event Handler for the Enter event for the UltraCombo:

void managerUltraCombo_Enter(object sender, EventArgs e) {

this.managerUltraCombo.Layouts.Grid.Rows.Band.Columns["FirstName"].Hidden = false;

this.managerUltraCombo.Layouts.Grid.Rows.Band.Columns["LastName"].Hidden = false;

this.managerUltraCombo.Layouts.Grid.Rows.Band.Columns["FullName"].Hidden = true;

}




Print Page | Close Window