Prado\Web\UI\ActiveControls\TActiveTableCell::getCellIndex PHP Метод

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

Returns the zero-based index of the TActiveTableCell within the {@link TTableCellCollection} of the parent {@link TTableRow} control. Raises a {@link TConfigurationException} if the cell is no member of the cell collection.
public getCellIndex ( ) : integer
Результат integer the zero-based index of the cell
    public function getCellIndex()
    {
        foreach ($this->getRow()->getCells() as $key => $row) {
            if ($row == $this) {
                return $key;
            }
        }
        throw new TConfigurationException('tactivetablecell_control_notincollection', get_class($this), $this->getUniqueID());
    }