A row template is an array of configured column names that determines which columns Angular Material renders in a table row. Columns remain hidden until a row template selects them. section 28.2.2
Selecting columns for header and body rows
Define the selected columns in the component, then bind the same array to the header and body row directives: <code>colsAndRows = ["id", "name", "category", "price", "buttons"]</code>; <code><tr mat-header-row *matHeaderRowDef="colsAndRows"></tr></code>; <code><tr mat-row *matRowDef="let row; columns: colsAndRows"></tr></code>. The names must match the configured column definitions, including custom columns such as price and buttons.
