hideColumnReturns: grid

Hide column from the grid.

Parameters

NameTypeDescription
field {string} The name of the field bound to the column.

Examples

sample

    
 <button id="btnHideColumn">Hide Column</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/0_6/Grid/GetPlayers',
         columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
     $('#btnHideColumn').on('click', function () {
         grid.hideColumn('PlaceOfBirth');
     });
 </script>