'Declaration Public ReadOnly Property CheckedItems As UltraListViewCheckedItemsCollection
public UltraListViewCheckedItemsCollection CheckedItems {get;}
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'.
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 );
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