public function colProjectSelectedCheckbox_Created(Project $_ITEM, QCheckBox $ctl) { //If it's related to ACME, start it off checked if (null !== $_ITEM->GetVirtualAttribute('assn_item')) { $ctl->Checked = true; } //You could perform an IsProjectAsRelatedAssociated call here instead, but //that would cause a database hit }