title: How to show/hide primeng datatable column based on md-card selection in angular 2 application
body: <p>I have 2 md-card : controller and Scheduler. On click of controller card i have to show controllerAssignedDate column and hide schedulerAssignedDate column and on click of Scheduler card i have to show schedulerAssignedDate column and hide controllerAssignedDate column. How can i do this in angular2 application</p>
  
  <pre><code> &lt;div&gt;&lt;md-card-content&gt;&lt;h3&gt;Controller&lt;/h3&gt;&lt;/md-card-content&gt;&lt;/md-card&gt;&lt;/div&gt;
   &lt;div&gt;&lt;md-card-content&gt;&lt;h3&gt;Scheduler&lt;/h3&gt;&lt;/md-card-content&gt;&lt;/md-card&gt;&lt;/div&gt;
  
   &lt;p-dataTable [value]="jobslist" [rows]="10" [paginator]="true" [rowsPerPageOptions]="[10,30,50]" sortMode="multiple" scrollable="true"   resizableColumns="true" scrollHeight="350px" &gt;
  
        &lt;p-header&gt;List of Jobs &lt;/p-header&gt;
  
        &lt;p-column field="partNumber" header ="Part Number" [sortable]="true" [filter]="true" &gt;&lt;/p-column&gt;
        &lt;p-column field="lineName" header ="Line Name" [sortable]="true" [filter]="true"&gt;&lt;/p-column&gt;
        &lt;p-column field="jobStatus" header ="Job Status" [sortable]="true" [filter]="true"&gt;&lt;/p-column&gt;
        &lt;p-column field="owner" header ="Owner" [sortable]="true" [filter]="true"&gt;&lt;/p-column&gt;
        &lt;p-column field="startDate" header ="Scheduled Start Date" [sortable]="true" [filter]="true"&gt;&lt;/p-column&gt;
        &lt;p-column field="controllerAssignedDate" header ="Date Assigned to Controller" [sortable]="true" [filter]="true"&gt;&lt;/p-column&gt;
        &lt;p-column field="schedulerAssignedDate" header ="Date Assigned to Scheduler" [sortable]="true" [filter]="true"&gt;&lt;/p-column&gt;   
        &lt;p-footer&gt;&lt;div class="ui-helper-clearfix" style="width:100%"&gt;&lt;a [routerLink]="['/register','']" &gt;&lt;button type="button" pButton icon="fa-plus" style="float:left"  label="Add"&gt;&lt;/button&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p-footer&gt;
  
      &lt;/p-dataTable&gt;
  </code></pre>