---
title: "PivotTable.Refresh"
url: "https://reference.aspose.com/cells/net/aspose.cells.pivot/pivottable/refresh/"
product: "Aspose.Cells for .NET API Reference"
description: "PivotTable method. Refresh PivotCache from data source and calculate data and style for pivot view"
---

## Refresh(PivotTableRefreshOption) {#refresh_1}

Refresh [`PivotCache`](../pivotcache/) from data source and calculate data and style for pivot view.

```csharp
public PivotRefreshState Refresh(PivotTableRefreshOption option)
```

| Parameter | Type | Description |
| --- | --- | --- |
| option | PivotTableRefreshOption |  |

### Remarks

All pivot tables that depend on the same PivotCache will be recalculated.

### See Also

* enum [PivotRefreshState](../../pivotrefreshstate/)
* class [PivotTableRefreshOption](../../pivottablerefreshoption/)
* class [PivotTable](../)
* namespace [Aspose.Cells.Pivot](../../../aspose.cells.pivot/)
* assembly [Aspose.Cells](../../../)

---

## Refresh() {#refresh}

Refresh [`PivotCache`](../pivotcache/) from data source and calculate data and style for pivot view.

```csharp
public PivotRefreshState Refresh()
```

### Remarks

All pivot tables that depend on the same PivotCache will be recalculated.

### See Also

* enum [PivotRefreshState](../../pivotrefreshstate/)
* class [PivotTable](../)
* namespace [Aspose.Cells.Pivot](../../../aspose.cells.pivot/)
* assembly [Aspose.Cells](../../../)


