Xceed Toolkit Plus for WPF v4.6 Documentation
IndexOf Method (DataGridCollectionView)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionView Class : IndexOf Method
The item whose index to retrieve.
Returns the zero-based index of the specified item.
Syntax
'Declaration
 
Public Overrides NotOverridable Function IndexOf( _
   ByVal item As Object _
) As Integer
'Usage
 
Dim instance As DataGridCollectionView
Dim item As Object
Dim value As Integer
 
value = instance.IndexOf(item)
public override int IndexOf( 
   object item
)

Parameters

item
The item whose index to retrieve.

Return Value

The zero-based index of item. If the item is not found, -1 is returned.
Requirements

Target Platforms: Windows 11, Windows 10, 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

Reference

DataGridCollectionView Class
DataGridCollectionView Members
Base Implementation in IndexOf