Skip to content

Multi Selection in ultracombo

New Discussion
Syed
Syed asked on Jul 13, 2017 8:45 AM

Hello All,

I am using infragistic 12.2 ultracombo as multi selection by using its properties stated below :

void ultraMultiCombo() {
          //Add an additional unbound column to WinCombo.
          //This will be used for the Selection of each Item
          UltraGridColumn c = this.ultraCombo1.DisplayLayout.Bands[0].
Columns.Add();
 
          c.Key = "Selected";
          c.Header.Caption = string.Empty;
 
          //This allows end users to select / unselect ALL items
          c.Header.CheckBoxVisibility = HeaderCheckBoxVisibility.
Always;
 
          c.DataType = typeof(bool);
 
          //Move the checkbox column to the first position.
          c.Header.VisiblePosition = 0;
 
          this.ultraCombo1.CheckedListSettings.CheckStateMember =
 "Selected";
          this.ultraCombo1.CheckedListSettings.EditorValueSource =
Infragistics.Win.EditorWithComboValueSource.CheckedItems;
          // Set up the control to use a custom list delimiter
          this.ultraCombo1.CheckedListSettings.ListSeparator = " / ";
          // Set ItemCheckArea to Item, so that clicking directly
on an item also checks the item
          this.ultraCombo1.CheckedListSettings.ItemCheckArea =
Infragistics.Win.ItemCheckArea.Item;
          this.ultraCombo1.DisplayMember = "Name";
          this.ultraCombo1.ValueMember = "Age";
      }
And getting checked values by

string s = string.Empty;
          foreach (UltraGridRow r in this.ultraCombo1.CheckedRows)
          {
              s += r.Cells["Name"].Value.ToString() + Environment.NewLine;
          }
the problem is that whenever i check multi records and click on button
 to show multiple values through above code its correctly but in ultracomboa
 selected values not dispaying, as shown in image below:



      
Sign In to post a reply

Replies

  • 0
    Plamena Miteva
    Plamena Miteva answered on May 26, 2017 4:11 PM

    Hello Syed,

    I have created a sample using the code you provided. When I run the project and I check some items from the UltraCombo, they are displayed exactly as expected (example: Maria / John / Peter).

    I have attached the sample project I used to test this.  Please, feel free to make the sample that I provided more like your application and send it back in case it does not replicate your steps.

    • 0
      Syed
      Syed answered on May 26, 2017 4:31 PM

      Hey Plamena Miteva

      I got it and my issue has been resolved thanks alot for helping.

      issue in my code was the datasource i provided and incorrect type of column which was bound.

      (please excuse my english as i am not fluent in it)

      Thanks & Regards

      Syed Wahhab.

      • 0
        Peter
        Peter answered on Jul 13, 2017 8:45 AM

        thanks alot for helping.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Syed
Favorites
0
Replies
3
Created On
Jul 13, 2017
Last Post
8 years, 7 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Jul 13, 2017 8:45 AM

Last activity on

Feb 18, 2026 8:07 AM