Prado\Web\UI\ActiveControls\TActiveTableRow::getRowIndex PHP Метод

getRowIndex() публичный Метод

Returns the zero-based index of the TActiveTableRow within the {@link TTableRowCollection} of the parent {@link TTable} control. Raises a {@link TConfigurationException} if the row is no member of the row collection.
public getRowIndex ( ) : integer
Результат integer the zero-based index of the row
    public function getRowIndex()
    {
        foreach ($this->getTable()->getRows() as $key => $row) {
            if ($row == $this) {
                return $key;
            }
        }
        throw new TConfigurationException('tactivetablerow_control_notincollection', get_class($this), $this->getUniqueID());
    }