# RefreshCustomRowHeights()

> Refreshes the cache of custom row rects based on the heights returned by TreeView<TIdentifier>.GetCustomRowHeight.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.5/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
protected virtual void RefreshCustomRowHeights()
```

### Remarks

This method calls [TreeView\<TIdentifier>.GetCustomRowHeight](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/getcustomrowheight.md) for each of the current rows and caches the results. It is called automatically by the TreeView after [TreeView\<TIdentifier>.BuildRows](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/buildrows.md) is called to ensure heights are in sync with the rows. Calling this method manually is needed when row heights changes dynamically e.g after a user action changes the content of a row.
