{"title":"ShowAsTree Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-showastree-property/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-showastree-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets the indentation of rows on a List Page to Tree View.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":204,"chars":26},{"level":2,"title":"Property Value","slug":"property-value","at":230,"chars":86},{"level":2,"title":"Remarks","slug":"remarks","at":316,"chars":654},{"level":2,"title":"Example","slug":"example","at":970,"chars":181},{"level":2,"title":"Related information","slug":"related-information","at":1151,"chars":143}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets 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.\n## Applies to\n Page Group\n## Property Value\ntrue enables the tree view; otherwise, false. The default is false.\n## Remarks\nTo 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.\nOptionally, you can set the TreeInitialState property to specify whether the list displays as collapsed or expanded when the list page opens in the client.\n> NOTE\n> When you set this property to true, the IndentationControls property is ignored and the first column on the page is indented.\nFor more information about how to use this property, see Designing Indented Hierarchy Lists<../devenv-indented-hierarchy-lists>.\n## Example\n```al\nrepeater(Control1)\n{\n    IndentationColumn = Indent;\n    ShowAsTree = true;\n    TreeInitialState = CollapseAll;\n\n    field(\"No.\"; \"No.\")\n    {\n\n    }\n\n    ...\n\n```\n## Related information\ndevenv-indentationcolumn-property\ndevenv-treeinitialstate-property\ndevenv-indentationcontrols-property\ndevenv-properties"}