# ShowAsTree Property
> Version: _Available or changed with runtime version 1.0._
Sets the indentation of rows on a List Page to Tree View. If you enable this property, you can expand or collapse indented rows on a List Page.
## Applies to
 Page Group
## Property Value
true enables the tree view; otherwise, false. The default is false.
## Remarks
To enable the tree view, you must also set the IndentationColumn property. This property specifies an integer data type field in the source table or variable. This field controls which records are indented and by how much.
Optionally, you can set the TreeInitialState property to specify whether the list displays as collapsed or expanded when the list page opens in the client.
> NOTE
> When you set this property to true, the IndentationControls property is ignored and the first column on the page is indented.
For more information about how to use this property, see Designing Indented Hierarchy Lists<../devenv-indented-hierarchy-lists>.
## Example
```al
repeater(Control1)
{
    IndentationColumn = Indent;
    ShowAsTree = true;
    TreeInitialState = CollapseAll;

    field("No."; "No.")
    {

    }

    ...

```
## Related information
devenv-indentationcolumn-property
devenv-treeinitialstate-property
devenv-indentationcontrols-property
devenv-properties

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-showastree-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-showastree-property/
