'Declaration Public ReadOnly Property CheckedItems As Infragistics.Win.CheckedValueListItemsCollection
public Infragistics.Win.CheckedValueListItemsCollection CheckedItems {get;}
The CheckedItems collection property mirrors the property of the same name that is exposed by the ValueList class.
The CheckedItems collection is similar to the collection of the same name exposed by the .NET CheckedListBox control. In situations where an application requires that the end user be able to select multiple values from a dropdown, checkboxes can be used to accomplish this; rather than the value being determined by the one selected item, it can be determined instead by the members of the CheckedItems collection.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinEditors Imports System.Diagnostics Public Function IsItemChecked(ByVal comboEditor As UltraComboEditor, ByVal dataValue As Object) As Boolean Dim checkedItems As CheckedValueListItemsCollection = comboEditor.CheckedItems ' Iterate the CheckedItems collection and compare the value ' of each item therein to the specified value. Dim item As ValueListItem For Each item In checkedItems If Object.Equals(dataValue, item.DataValue) Then Return True Next Return False End Function
using Infragistics.Win; using Infragistics.Win.UltraWinEditors; using System.Diagnostics; public bool IsItemChecked( UltraComboEditor comboEditor, object dataValue ) { CheckedValueListItemsCollection checkedItems = comboEditor.CheckedItems; // Iterate the CheckedItems collection and compare the value // of each item therein to the specified value. foreach( ValueListItem item in checkedItems ) { if ( object.Equals(dataValue, item.DataValue) ) return true; } return false; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
UltraComboEditor Class
UltraComboEditor Members
CheckState property
ValueListItem class
Items collection
SetCheckState method