I have used the following code successfully to hide columns in list page views using the Before Display event:
$xt->assign("Address2_fieldcolumn",$_SESSION["Hide_Address2"] <> 1);
$xt->assign("Address2_fieldheadercolumn",$_SESSION["Hide_Address2"] <> 1);
However, I noticed today that even though I am using this code in a list page, once that list page is used as a child form in a Master/Detail entry it fails to hide the columns. It seems like the event never takes place if the child list is displayed via a Master form. How can I hide/show columns using events for a child list in a Master form? For clarification, I am not talking about the details preview, rather I am referring to the child list that allows for inline add/edit once you create a entry in a Master form that is linked to the child.
Should I just place my code inside another event in the List page events for the child form???
Thanks,
M