Syncfusion.Grouping.Base


The sort key to search for. The sortKey will be compared to the sorted field in the table as specified with SortedColumns.

IndexOf(String) Method

Searches for the first occurrence of a record that matches the sort-key and returns the zero-based index of the first occurrence found or -1 if not found.
Syntax
'Declaration
 
Public Overloads Function IndexOf( _
   ByVal sortKey As String _
) As Integer
'Usage
 
Dim instance As RecordsInDetailsCollection
Dim sortKey As String
Dim value As Integer
 
value = instance.IndexOf(sortKey)
public int IndexOf( 
   string sortKey
)

Parameters

sortKey
The sort key to search for. The sortKey will be compared to the sorted field in the table as specified with SortedColumns.

Return Value

Record index.
Remarks
The method ensures that the collection is in sync with the underlying table if changes have been made to the Table or the TableDescriptor.

The method calls Element.EnsureInitialized.

AssemblyVersion

Syncfusion.Grouping.Base: 18.2460.0.44

See Also