Get Item/Row Index

Last modified: June 18, 2025

Description

Returns the zero-based index of a row in a Datagrid, or of an item in a TemplateGrid or ListView.

Supported Widgets

  • DataGrid
  • TemplateGrid
  • ListView

Usage

You have to provide an Item/Row as WebElement. To get the DataGrid row or TemplateGrid/ListView Item, use the actions Find Item/Row, Find Item/Row (by child element) or Find/Assert DataGrid Row.

Input Parameters

NameDatatypeRequiredDescription
Item/RowWebElementyesThe DataGrid row or TemplateGrid/ListView Item

Return Value

NameDatatypeDescription
IndexIntegerThe index of the supplied Row/Item. Starts with 0 for the first Row/Item.