Standalone content in a layout-table grid
A non-editable field with ShowCaption = false is acceptable inside a layout-table grid only when the field is standalone content — it displays a value that is meaningful on its own (for example a status message or a description) and is not intended to label or be labeled by another field in the…
- microsoftlayer
- uidomain
- 1example
- 1pull request
Rule on GitHub · microsoft layer · ui · BC all · tier official · derived
Description
A non-editable field with ShowCaption = false is acceptable inside a layout-table grid only when the field is standalone content — it displays a value that is meaningful on its own (for example a status message or a description) and is not intended to label or be labeled by another field in the grid.
Layout tables have no <th> column headers, so a captionless field that is meant to participate in a tabular relationship with a neighbour has no accessible label at all.
Best Practice
Reserve ShowCaption = false in a layout-table grid for non-editable, free-standing content cells. If a field’s role is to label or annotate another field in the same grid, restructure the grid to meet the data-table conditions (see grid-data-table-heuristic.md) instead of hiding the caption.
See sample: standalone-content-in-layout-table.good.al.
Examples
Changed by
From microsoft/BCQuality at a4593a1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).