Hi
I'm using an UltraCombo .
I'd like to creat a multi-select ultra Combo, this control is used to select multiple items but this works not fine when the combo is dropped down, in the combo i just selected only one line.
I've already tried to override this behaviour by clearing the text selection and setting the caret to the end in the MultiSelectDropDown1.List.Items event like webform. But this does not help. i'm newbie in winform :(
Is there another way to do this?
Thanks in advance!
Hi,
What version of the controls are you using?
The UltraCombo never supported multiple selection until jus recently. This is a new feature that was added in NetAdvantage for WinForms 2009 Vol. 1, I think. So if you are using an older version, then it could not have worked. Unless maybe you used the sample code from this article:
HOWTO:Creating a Multi-Select Dropdown Combo for the WinGrid
i'm using NetAdvantage for WinForms 2009 Vol.1 CLR2x . You said that it was a new feature in winform 2009 but i can't find :(
plz help me because i need it for my work,
Best regard,
The control exposes a CheckedListSettings property, under which there is a CheckStateMember property. You set this property to the column that you want to use for the checkboxes (this obviously works best when it is a boolean column). Then you set the EditorValueSource property to 'CheckedItems', and the control's value will return a list consisting of the value of each cell from the ValueMember column whose cell in the CheckStateMember column is checked.
Thank Brian for your advance.
Plz help me an example as a segment code. Actually it is difficult for me.Sorry about this trouble
Thank you again,
The following code maybe of help and assumes that the Wincombo control is bound to a data table.
using
Infragistics.Win;
Infragistics.Win.UltraWinGrid;
...
this.ultraCombo1.DisplayMember = "FirstName";
this.ultraCombo1.ValueMember = "EmployeeID";
// The column assigned to the CheckStateMember property works best for Boolean columns
this.ultraCombo1.CheckedListSettings.CheckStateMember = "IsActive";
// Set up the UltraCombo to show the checkbox middle-center aligned
checkEditor.CheckAlign =
ContentAlignment.MiddleCenter;
column.Editor = checkEditor;
No, typing into a multi-select combo is not supported. You can Submit a Feature Request.
Hi Mike
I can create the control fine, the only problem I have is that I have many items in my list (5,000), is there any way I can tell the control to do row matching depending what text the user has enter into the input box.
Many Thanks
You are correct. It sounds like your IsActive field is a boolean field that comes from the data source. You don't want to use that field as the selection column, since it's actual data. What you would need to do in a case like this is add an unbound column to your control and set it's DataType to Boolean to act as the selection column.
Something is wrong here unless I am misunderstanding what multi-select in UltraCombo means. I want to have the same functionality as UltraComboEditor when CheckedListSettings.CheckBoxStyle = Infragistics.Win.CheckStyle.CheckBox but with the ability to show multiple columns in dropdown. So from your example (with 3 columns EmployeeID, LastName, IsActive) I want to have EmployeeID column hidden (it is just number) LastName as Displayed, IsActive displayed in dropdown as additional column for user info, but with a checkbox to the left where user can select multiple rows (without combo closing until enter or leave, etc. Then get the valuelist of EmployeeID's to use for other functionality. The UltraCombo is stand alone and the EmployeeID field is not bound to any datafield.
From you code, setting the IsActive field to a checkeditor, just displays on open various checked states depending on the IsActive value in the datasource for the list, and editing just checks these. What possible purpose would that do? I don't want to change the value of the IsActive field, just select rows. Could you please further expand/correct the code so that when my ultra combo drops down, the EmployeeID fields is hidden, there is a check on the left of the dropdown rows, then the first columnd from the list source (LastName) the the IsActive field. Then after selecting rows, what is in the value list?
Thanks
Thanks.