Window show out second layer problem

I have a window attach the layout. the layout attach the Grid, now it can show the layout, but cannot show the grid.

q1 : window can attach second layer or else.
q2 : the grid copy from other page, but the grid can not show in second layer, if the code is corrected, why cannot show out in window.

thank you for your help.

[code]dhxWins = new dhtmlXWindows();
dhxWins.attachViewportTo(document.body);

	dhxWins.vp.style.border = "#a4bed4 1px solid";
	dhxWins.vp.style.borderRadius = "2px";

	w1 = dhxWins.createWindow("w1", 420, 50, 420, 550);
	w1.setText("Edit Department Form");
	w1.button("close").enable();
	myLayout2 = w1.attachLayout("2E");
	myLayout2.cells("a").hideHeader();
	
	myGrid = myLayout2.cells("a").attachGrid();
	 
	myGrid.setImagePath("dht/codebase/imgs/"); 
	myGrid.setHeader("Dept ID, Dept Name");
	myGrid.setInitWidths("60,*");
	myGrid.setColAlign("left,left");
	myGrid.setColTypes("ro,ro");
	myGrid.setColSorting("str,str");
	myGrid.init();
	myGrid.loadXML("php/connector/deptConnector.php");[/code]

Hello
Need to clarify the DHX version you use. There is no loadXML method in the current version

V4.5

q1: Yes, you can have mane inner attachments
q2: Method loadXML() is deprecated from 4+ version. Please use method load() to load grid data. Plus be sure that you set all grid settings correctly
Result from your code (with static grid from samples)