title: how to trigger group-row header expand manually ngx-datatable angular
body: <p>I am using <a href="https://github.com/swimlane/ngx-datatable/issues/1706" rel="nofollow noreferrer">ngx-datable</a> to render a table with row grouping.</p>
  
  <p>I am trying grouping of row dynamically.</p>
  
  <pre><code>&lt;ngx-datatable 
        [groupExpansionDefault]="false" [groupRowsBy]="groupBy"&gt;
  </code></pre>
  
  <p>Initial value of <code>groupBy</code> is suppose "A";</p>
  
  <p>Based on some event I change <code>groupBy</code> to "B".</p>
  
  <p>The datatable itself is not updating the records. And when I click on header row it then updates the records. Rather it should automatically update the table records with new grouping.</p>
  
  <p>Is there any solution for this or may be any way to simulate the click I mean manually expanding/collapsing the header row?</p>