I want to change row colour when row updated.how set row background colour when record is updated successfully . .html
<p-dataTable emptyMessage="{{tbldatamsg}}"
[value]="dataset" scrollable="true"
[style]="{'overflow':'hidden!important'}"
[responsive]="true" [stacked]="stacked" [filters]="GlobalFilterValue" [rows]="20" sortMode="multiple" [(selection)]="selectedRow"
selectionMode="multiple"
[resizableColumns]="true" columnResizeMode="expand"
[paginator]="true"
[globalFilter]="gb"
[rowsPerPageOptions]="[10,15,20,25]"
appendTo="body" #dt>
<p-column styleClass="checkbox ui-resizable-column" [style]="{'width': 'auto'}" selectionMode="multiple"></p-column>
<p-column *ngFor="let col of cols;let j=index;"
[style]="{'width':'130px','display':col.display} "
[field]="col.field"
[header]="col.header"
[sortable]="true"
[filter]="true" filterPlaceholder="Search" (mouseleave)="hoveredIndex=null" filterPlaceholder="Search"
appendTo="body">
</p-column>
</p-dataTable>
Solved I have used data table attribute and pass function name.
.HTML
.ts
.scss