DataGridRow.GetIndex Method ()


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)

member GetIndex : unit -> int

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