how to hide column when using dataconnector

how to hide column when using dataconnector to load data?

i tried putting mygrid.setcolumnhidden here but not only the column is not hidden, all the data cannot be seen. without the mygrid.setcolumnHidden(1,true), everything works fine, except that i cannot hide the column i want.

mygrid.init();
mygrid.setColumnHidden(1,true); <---------------------
mygrid.enableSmartRendering(true);
mygrid.loadXML(“connector.php”);
var dp = new dataProcessor(“connector.php”);
dp.init(mygrid);

setColumnHidden() method is available in PRO version only.