title: Datatable: bind column width
body: <p>How to bind column width for PrimeNG data table?</p>
  
  <p>Neither this works:</p>
  
  <pre><code>&lt;p-dataTable [value]="rows"&gt;
      &lt;p-column *ngFor="let col of cols2" [field]="col.FieldName" [header]="col.Caption" [style.width.px]="col.Width" &gt;
  </code></pre>
  
  <p>nor this:</p>
  
  <pre><code>&lt;p-dataTable [value]="rows" &gt;
      &lt;p-column *ngFor="let col of cols2" [field]="col.FieldName" [header]="col.Caption" [style]="col.Style" &gt;
  </code></pre>
  
  <p>Width of column cannot be defined like this:</p>
  
  <pre><code>[style]="{width: '180px', 'text-align': 'center'}" 
  </code></pre>
  
  <p>because it is dynamic.</p>