Hi
To set focus on Sub-Grid use this line after grid has bind..
grid.control.SetParameter("fetchXml", fetchXml);
grid.control.Refresh();
document.getElementById('subgridName').getElementsByTagName('a')[0].focus();
-----------------------------------
If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'