I'm trying to manually hide/display some buttons on command item template of a detail table but I've been unsuccessful. I thought changing visibility in OnItemCommand would do it, since I know at that time which detail table to change and which command is executed but it's not working. I've found some posts that suggest hiding items during OnItemCreated event but then I don't know for which detail table... Any ideas?