Version

ItemSelectionStrategyFilter Property

Gets/sets the ISelectionStrategyFilter implementor which determines item selection behavior for this UltraListView control.
Syntax
'Declaration
 
Public Property ItemSelectionStrategyFilter As Infragistics.Win.ISelectionStrategyFilter
public Infragistics.Win.ISelectionStrategyFilter ItemSelectionStrategyFilter {get; set;}
Example
The following code sample demonstrates how to use the UltraListView's ItemSelectionStrategyFilter property to override the selection behavior for the control:

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinListView

    Me.ultraListView1.ItemSelectionStrategyFilter = New SelectionStrategyFilter(Me.ultraListView1)


Public Class SelectionStrategyFilter
    Implements ISelectionStrategyFilter

    Private listView As UltraListView = Nothing

    Public Sub New(ByVal listView As UltraListView)
        MyBase.New()
        Me.listView = listView
    End Sub

    Public Overridable Overloads Function GetSelectionStrategy(ByVal selectableItem As Infragistics.Shared.ISelectableItem) As ISelectionStrategy Implements ISelectionStrategyFilter.GetSelectionStrategy
        Return New SelectionStrategyContiguous(Me.listView)
    End Function

End Class
using Infragistics.Win;
using Infragistics.Win.UltraWinListView;
using System.Diagnostics;

	this.ultraListView1.ItemSelectionStrategyFilter = new SelectionStrategyFilter( this.ultraListView1 );


	public class SelectionStrategyFilter : ISelectionStrategyFilter
	{
		private UltraListView listView = null;

		public SelectionStrategyFilter( UltraListView listView )
		{
			this.listView = listView;
		}

		ISelectionStrategy ISelectionStrategyFilter.GetSelectionStrategy( Infragistics.Shared.ISelectableItem selectableItem )
		{
			return new SelectionStrategyContiguous( this.listView );
		}

	}
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