object:getRowAtIndex()

Type Function
Library widget.*
Return value GroupObject
Revision Release 2024.3703
Keywords table view, list view, TableViewWidget, getRowAtIndex
See also widget.newTableView()
TableViewWidget

Overview

Returns the row group reference to a specific visible row in a TableViewWidget.

Syntax

object:getRowAtIndex( rowIndex )
rowIndex (required)

Number. The index of the row.

Gotchas

Example

local rowIndex = 4

if ( tableView:getNumRows() >= rowIndex ) then

    local ind = tableView:getRowAtIndex( rowIndex )
    if ( ind ) then
        print( "Row group:", ind )
    else
        print( "Row "..rowIndex.." is not currently visible!" )
    end
end