Version

DataIndexOfItem Method (DataGridView)

Returns the data index of an item within the bound data source.
Syntax
public int DataIndexOfItem( 
   object item
)

Parameters

item
The item from which to get the index.

Return Value

The index of the item, or -1 if not found or available.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also