Hi ,
You can do it like that ; You can call this code on load event of your form.
var Subgrid = document.getElementById("yoursubgridid");
if (Subgrid== null) {
setTimeout(function () { FilterSubgrid(); }, 2000);
//if the grid hasn’t loaded run this again when it has
return;
}
Also you can check my blog
Crm 2011/2013 Filtering SubGrid
If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın http://crmpolataydin.wordpress.com