protected function dtgQcodoClass_Bind() { // Get Total Count b/c of Pagination $this->dtgQcodoClass->TotalItemCount = QcodoClass::CountAll(); $objClauses = array(); if ($objClause = $this->dtgQcodoClass->OrderByClause) { array_push($objClauses, $objClause); } if ($objClause = $this->dtgQcodoClass->LimitClause) { array_push($objClauses, $objClause); } $this->dtgQcodoClass->DataSource = QcodoClass::LoadAll($objClauses); }