RE: how to show/hide subgrid based on two option change value in dynamics crm?
Hi Finance,
I would suggest that instead of doing this logic on the subgrid itself, you do it on a section on the form.
Put the subgrid on the section, and add a change event to the Two Options attribute
function twoOptionsOnChange()
{
var selectedValue = Xrm.Page.getAttribute("new_TwoOptions").getValue();
Xrm.Page.ui.tabs.get("subgridTabName").sections.get("subgridSectionName").setVisible(selectedValue);
}
Hope this helps