Grid, binding more column, hide unwanted column

Hello,

I work with the tutorial sample and seem to work right. but when I try to add another column
the grid won’t display anything.

I search on the doc but didn’t make it work right,

first here what I want to archive, I would like to have a grid with the connector

In contacts.php I use

$conn->render_table("contacts","contact_id","fname,lname,email,homepage");  

I would like to display only fname,lname,email , but I still want to bind homepage for modification I use createWindow and add form.xml and bind my contact form to the grid, I tried setColumnsVisibility but does’t seem to work

myGrid.setHeader("name,lastname,email,homepage");
myGrid.setColumnIds("fname,lname,email,homepage"); 
mygrid.setColumnsVisibility("false,false,false,true");
myGrid.setColAlign("left,left,left,left"); 
myGrid.setColTypes("ro,ro,ro,ro");
myGrid.setColSorting("str,str,str,str");

Please can you help me.

Thanks

Unfortunately the issue cannot be reproduced locally.
setColumnsVisibility() method works well for me. If the problem still occurs for you please, provide with a complete demo or a demo link, where the issue can be reconstructed locally.

Ahh I put the setColumnsVisibility at the wrong place now it’s work

thanks.