I need to put an id that represent that number of row in my tr I put this code <tr mat-row *matRowDef="let row; columns: _columns;let i = dataIndex;" [id]="i"></tr> The problem is that the id is undefined Anyone can help me to put the correct value? Continue reading...