title: primeng datatable - get value of another column
body: <p>I'm displaying a primeng table and the cell format will depend on the next column value, i.e. the one beside it to the right.</p>
  
  <p>I'm wondering how I can get the value of another column. I have:</p>
  
  <pre><code>         &lt;p-column *ngFor="let col of cols" [field]="col.field" [header]="col.header"&gt;
  
            &lt;ng-template let-row="rowData" pTemplate="body" *ngIf="col.field!='Name'"&gt;
  
              {{row[col.field]}} --displays current cell. I want to compare value to value of cell beside it
  
            &lt;/ng-template&gt;
  
          &lt;/p-column&gt;
  </code></pre>
  
  <p>if "row[col.field]" gives me the value of the current column cell value, how can I get cell beside it? </p>
  
  <p>Any ideas?</p>