function loadCustomDefaultView(){
debugger;
var subgrid=
Xrm.Page.getControl("subgridname");
if (subgrid != null || subgrid != 'undefined'
|| subgrid !='')) {
Xrm.Page.getControl("subgridname").setDefaultView("GUID");
}
}
This blog aims to provide some technical tips about Microsoft Dynamics CRM 4.0 to D365, SQL Server and .Net.