xxxxxxxxxx
<td mat-cell *matCellDef="let item" [contentEditable]="true"
(blur)="onBlur(item, 'name', $event)">{{item.name}}</td>
onBlur(item: TableItem, property: keyof TableItem, event: any) {
item[property] = event.target.textContent.trim();
}
where table item is the model or interface of the grid