Prado\Web\UI\WebControls\TBoundColumn::dataBindColumn PHP Method

dataBindColumn() public method

This method is invoked when datagrid performs databinding. It populates the content of the cell with the relevant data from data source.
public dataBindColumn ( $sender, $param )
    public function dataBindColumn($sender, $param)
    {
        $item = $sender->getNamingContainer();
        $data = $item->getData();
        $formatString = $this->getDataFormatString();
        if (($field = $this->getDataField()) !== '') {
            $value = $this->formatDataValue($formatString, $this->getDataFieldValue($data, $field));
        } else {
            $value = $this->formatDataValue($formatString, $data);
        }
        $sender->setData($value);
    }