DataGridRow::GetIndex Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Silverlight
Available since 2.0
Return to top
Show: