public function getFirstIndexInPage() { if ($this->_dataSource !== null && $this->_allowPaging && !$this->_allowCustomPaging) { return $this->_currentPageIndex * $this->_pageSize; } else { return 0; } }