Type Function Library widget.* Return value GroupObject Revision Release 2024.3703 Keywords table view, list view, TableViewWidget, getRowAtIndex See also widget.newTableView() TableViewWidget
Returns the row group reference to a specific visible row in a TableViewWidget.
The rowIndex
value must be within the range of rows in the table view.
This function will return nil
if the row is not currently visible in the table view.
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