title: How to configure CRM Ribbon xml to display a ribbon button for an Entity only when it is being viewed in the context of a particular parent entity
body: <h2>What I'm Trying To Do</h2>
  
  <p>I've got a CRM entity (LocationSettings) that is displayed as an associated Sub Grid on another entity (Location).   I want to add a button to the subgrid ribbon for the LocationSettings entity that will basically delete all LocationSettings for the Location the user is currently viewing.</p>
  
  <h2>Where I'm At</h2>
  
  <p>I'm using the Visual Ribbon Editor for CRM 2011, and I have been able to successfully create the button, and add it to the ribbon, but when I try to add a display rule to only allow the button to show up when the user is on the Location entity form, viewing the LocationSettings entity associated subgrid, I'm at a complete lost, and everything I try just results in the button not getting displayed.</p>
  
  <p>My current best guess is to add a display rule with these values:
  Entity Name: location
  Applies To: PrimaryEntity
  Context: Form</p>
  
  <p>Anyone know what I should be doing?</p>