# Hierarchy Overview

Besides the trivial tabular data visualization, the **RadGridView** is capable of displaying hierarchical data in the form of nested tables. In the [Basic Hierarchies](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/basic-hierarchies) topic you can find information about the basics of building a hierarchical grid.

> caption Basic hierarchies

![Telerik UI for WPF RadGridView basic hierarchy with nested child tables under parent rows](https://www.telerik.com/products/wpf/documentation/assets/7c6f1ec7fd2b582c34c22cd1bc896f01/gridview-basic-hierarchies.png)

The **RadGridView** also allows you to create hierarchies in your grid based on some custom logic.
In that case you can benefit from the **RowDetails options**. To learn more about these take a look at the [Row Details](https://www.telerik.com/products/wpf/documentation/controls/radgridview/row-details/overview) topic.

> caption Row details

![Telerik UI for WPF RadGridView row details used to present custom hierarchical content](https://www.telerik.com/products/wpf/documentation/assets/358ff88edb64a77d77f94eaf2e2eb79e/gridview-row-details.png)

In the cases when the nested grids should display data of the same type as the master grid, you can build a self-referencing grid. To learn more about the self-referencing approach take a look at the [Self-Referencing GridView](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/self-referencing-grid) topic.

> caption Self-referencing GridView

![Telerik UI for WPF RadGridView self-referencing hierarchy with expandable rows of the same data type](https://www.telerik.com/products/wpf/documentation/assets/7e365579f13e8074d3b6a35beb4615d0/gridview-self-referencing.png)

> important Please bear in mind that the **DataContext** of the row details presenter and the hierarchy child presenter is the **parent row** and not the context of the RadGridView itself. You can change the DataContext either in the [LoadingRowDetails](https://www.telerik.com/products/wpf/documentation/controls/radgridview/row-details/programming) event when dealing with row details or in the [DataLoding](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/how-to/access-child-gridview) event when building a hierarchy with table definitions.

## See Also

* [Basic Hierarchies](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/basic-hierarchies)

* [Custom Hierarchies](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/custom-hierarchies)

* [Self-Referencing GridView](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/self-referencing-grid)

* [Row Details Events](https://www.telerik.com/products/wpf/documentation/controls/radgridview/row-details/programming)

* [Set Properties of the Child RadGridView](https://www.telerik.com/products/wpf/documentation/controls/radgridview/hierarchical-gridview/how-to/access-child-gridview)
