New Posts New Posts RSS Feed: Two-column Infragistics ComboBox
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Two-column Infragistics ComboBox

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Two-column Infragistics ComboBox
    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.
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 12-Jul-2007 at 11:03am
 
 
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
 
 
 
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;

}



Edited by IdeaBlade - 12-Jul-2007 at 2:22pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down