GridView.php
protected function getRowValues($columns, $model, $index = 0)
    {
        $values = [];
        $keys = $this->dataProvider->getKeys();
        foreach ($columns as $column) {
            /** @var \kartik\grid\DataColumn $column */
            if ($column instanceof DataColumn) { // we only work with DataColumn types
                $values[$column->attribute] = $this->getColumnDataCellContent($column, $model, $keys[$index], $index);
            }
        }

        return $values;
    }
protected function getRowValues($columns, $model, $index = 0)
    {
        $values = [];
        $keys = $this->dataProvider->getKeys();
        foreach ($columns as $column) {
            /** @var \kartik\grid\DataColumn $column */
            if ($column instanceof DataColumn) { // we only work with DataColumn types
                $values[$column->attribute] = $this->getColumnDataCellContent($column, $model, $keys[$index], $index);
            }
        }

        return $values;
    }
protected function getRowValues ( $ columns , $ model , $ index = 0 ) { $ values = [ ] ; $ keys = $ this -> dataProvider -> getKeys ( ) ; foreach ( $ columns as $ column ) { /** @var \kartik\grid\DataColumn $column */ if ( $ column instanceof DataColumn ) { // we only work with DataColumn types $ values [ $ column -> attribute ] = $ this -> getColumnDataCellContent ( $ column , $ model , $ keys [ $ index ] , $ index ) ; } } return $ values ; }
Returns the row values of the column
@param array $columns the columns
@param mixed $model the model
@param int $index the zero-base index of the model among the models array
@return array
Returns the row values of the column