public function dtgSignupForms_Bind() { if ($this->intMinistryId) { $this->dtgSignupForms->DataSource = SignupForm::LoadOrderedArrayByMinistryIdAndConfidentiality($this->intMinistryId, Ministry::Load($this->intMinistryId)->IsLoginCanAdminMinistry(QApplication::$Login), !$this->chkViewAll->Checked); $this->dtgSignupForms->Visible = true; } else { $this->dtgSignupForms->DataSource = null; $this->dtgSignupForms->Visible = false; } $this->lblStartText->Visible = !$this->dtgSignupForms->Visible; }