I need a very simple list with checkboxes (like the checkedlistbox from MS) that accepts multiple selection.
I would like to use a valuelist to populate the items, so that I can be consistent with the way I fill the combo boxes. (The list would only have about 10 options.)
Which is the right control ?
Thanks,
pitV
If you just need a single-value list, then the UltraComboEditor would be the way to go.
Alternately, you could use UltraCombo, but UltraCombo has multiple columns, column headers, etc. So it's a bit more complex.
Here's a link to the help which explains how to do multi-select with UltraComboEditor.
Selecting Multiple Values within WinComboEditor
Thanks for the reply.
Actually I need to display a plain list with check-boxes (like the ultracheckEditor), not a drop-down list.
Do I need the UltraListView for this (it seems overwhelmingly packed with features that I don't need for the purpose) or can I have an UltraCombo displaying like a list without a drop down facility ?
If it has got to be the UltraListview, can you please give an example of how to provide the list items using an Infragistics.Win.ValueList (assigning it to ultraListView1.MainColumn.ValueList does not seem to do the job), and how to read out the lines that the user has checked ?
Thanks again !
Pit
Hi Pit,
You can still use UltraCombo. The link I posted above tells you how to set up an UltraCombo with checkboxes on it for multiple selection.
Oh, I see. So you are looking for a ListView kind of thing. Not a dropdown list, but just a list where all the items are visible (or at least multiple items).
In that case, you can use UltraListView or UltraTreeView.
With UltraListView, all you have to do set a couple of properties:
this.ultraListView1.View = Infragistics.Win.UltraWinListView.UltraListViewStyle.List; this.ultraListView1.ViewSettingsList.CheckBoxStyle = Infragistics.Win.UltraWinListView.CheckBoxStyle.CheckBox;
Mike,
Correction to my last post.
I'm referring to the UltraCheckEditor where I had actually the UltraOptionSet in mind .
Sorry about that.
Thanks Mike,
Sorry if I didn't make myself clear.
I did check out the link before. The thing is that it does not explain how to make the combobox appear as a list. (If that is at all possible.)
By "list" I mean something like the UltraCheckEditor. Just a rectangle with lines in it is what I need. Each line a checkbox and a word. The lines are visible all the time, no drop down button needed.
I would use the UltraCheckEditor if it was multi-selectable.
So unfortunately, unless I'm missing out on something, my problem was not solved by the link.
Can you look into this again please ?
Thanks