AnsweredAssumed Answered

Hiding a column in a dojox.grid.DataGrid

Question asked by glen.rhea on Oct 7, 2010
Latest reply on Nov 25, 2014 by TONIFAIRBANKS
I'm trying to hide a column in a datagrid because I'm using the objectid as a unique value to zoom to the graphic on the map. Obviously I don't want to display the objectid to the user so I'm trying to find a way to hide that column.

Here is what I've tried:
declaratively - <th field="1" hidden="true"></th> - no result
programmatically - grid.layout.setColumnVisibility(1, false); - hides the whole grid
css - <th field="1" style="display:none"></th> - no result

Any ideas?

I don't have this code published to the web yet but I can if needed.

The whole table:
<table dojotype="dojox.grid.DataGrid" jsid="grid" id="grid" ><thead><tr><th field="0" width="225px" >Results</th></tr><th field="1" hidden="true"></th></tr></thead></table>

Outcomes