New to Telerik UI for .NET MAUIStart a free 30-day trial

Expand and Collapse Items in .NET MAUI TreeDataGrid

Updated on Sep 9, 2025

The Telerik UI for .NET MAUI TreeDataGrid lets you expand and collapse item either through the UI-by tapping on the expand/collapse icon or programmatically.

The TreeDataGrid allows you to collapse all items by setting the AutoExpandGroups (bool) property. The default value is false, which means, all items are expanded.

Expand and Collapse Specific Items

The TreeDataGrid exposes the following methods to expand and collapse the children of an item:

  • Expand(object item)—Expands the children of the item.
  • Collapse(object item)—Collapses the children of the item.

Use the IsExpanded (object item) method to get a value whether the item is currently expanded (has its children visible). Returns true if the item is expanded, otherwise false.

Additional Resources

See Also