GetIndex Method

DataGridRow.GetIndex Method ()

.NET Framework (current version)

Returns the index of the row's data item within the Items collection of the DataGrid.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public int GetIndex()

Return Value

Type: System.Int32

The index of the row's data item, or -1 if the item was not found.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2016 Microsoft