Multi Selection in ultracombo
New DiscussionHello 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
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Jul 13, 2017 Last Post
8 years, 7 months ago