Version

CheckedItems Property

Returns a collection of UltraListViewItem objects whose CheckState property returns 'Checked'.
Syntax
'Declaration
 
Public ReadOnly Property CheckedItems As UltraListViewCheckedItemsCollection
public UltraListViewCheckedItemsCollection CheckedItems {get;}
Remarks

When the UltraListView control's View property is set to 'Details' or 'List', the control can be configured to display checkboxes by setting the CheckBoxStyle property to 'CheckBox' or 'TriState'.

Checkboxes are only displayed when the control's View property is set to 'Details' or 'List'.

Example
The following code sample demonstrates how the UltraListView's CheckItems collection can be used to easily determine which items are checked:

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinListView


        Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder()
        sb.Append("A report will be generated for the following orders:")
        sb.Append(Environment.NewLine)

        Dim checkedItem As UltraListViewItem
        For Each checkedItem In Me.ultraListView1.CheckedItems
            sb.Append(checkedItem.Text)
            sb.Append(Environment.NewLine)
        Next

        MessageBox.Show(sb.ToString(), "Orders", MessageBoxButtons.OK, MessageBoxIcon.Information)
using Infragistics.Win;
using Infragistics.Win.UltraWinListView;
using System.Diagnostics;

			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append( "A report will be generated for the following orders:" );
			sb.Append( Environment.NewLine );

			foreach( UltraListViewItem checkedItem in this.ultraListView1.CheckedItems )
			{
				sb.Append( checkedItem.Text );
				sb.Append( Environment.NewLine );			
			}

			MessageBox.Show( sb.ToString(), "Orders", MessageBoxButtons.OK, MessageBoxIcon.Information );
Requirements

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

See Also