title: How to hide column in Ag Grid?
body: <p>I am fetching data from a database and filling it by adding a manual action button column into Ag-Grid. Now, the first columns consist of those action buttons and 2nd column contains _id I want to hide that second column but in ag-grid documentation they gave information only about hiding column on static data. Here's my code that has column def.</p>
  
  <pre><code>setMasterData (state, payload) {
  if (!payload) {
    state.tableData.rows = [];
  } else {
    // First column holds the buttons to delete the row item
    let cols = [{
      field: '',
      headerName: 'Actions',
      width: 200,
      colId: 'params',
      cellRendererFramework: 'gridEditButtons'
    }];
    cols = cols.concat(Object.keys(payload[0]).map(x =&gt; {
      return {
        field: x,
        headerName: x.replace(/([A-Z])/g, ' $1').replace(/^./, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); })
      };
    }));
    state.tableData.cols = cols;
    state.tableData.rows = payload;
   }
  }
  </code></pre>
  
  <p>How to hide the next column following action column?</p>