public function dtgMyClassAttendance_Bind() { $objSignupEntryArray = array(); $i = 0; foreach ($this->objSignupForm->GetSignupEntryArray() as $objSignupentry) { if ($objSignupentry->SignupEntryStatusTypeId == SignupEntryStatusType::Complete) { array_push($objSignupEntryArray, $objSignupentry); $this->mctClassRegistrationArray[$objSignupentry->Id] = new ClassRegistrationMetaControl($this->dlgEdit, $objSignupentry->ClassRegistration); $i++; } } $this->dtgClassAttendance->DataSource = $objSignupEntryArray; }