---
title: "PivotCaches.Add"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridweb.data/pivotcaches/add/"
product: "Aspose.Cells for .NET API Reference"
description: "PivotCaches method. Adds a PivotCache from DataTable"
---

## Add(DataTable) {#add_2}

Adds a PivotCache from DataTable.

```csharp
public PivotCache Add(DataTable dataTable)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dataTable | DataTable | The data source |

### See Also

* class [PivotCache](../../pivotcache/)
* class [PivotCaches](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(DataTable, string) {#add_3}

Adds a PivotCahe from DataTable using the specified name.

```csharp
public PivotCache Add(DataTable dataTable, string cacheName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dataTable | DataTable | The data source |
| cacheName | String | The cache name |

### See Also

* class [PivotCache](../../pivotcache/)
* class [PivotCaches](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(DataView) {#add_4}

Adds a PivotCache from DataView.

```csharp
public PivotCache Add(DataView dataView)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dataView | DataView | The data source |

### See Also

* class [PivotCache](../../pivotcache/)
* class [PivotCaches](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(DataView, string) {#add_5}

Adds a PivotCahe from DataView using the specified name.

```csharp
public PivotCache Add(DataView dataView, string cacheName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dataView | DataView | The data source |
| cacheName | String | The cache name |

### See Also

* class [PivotCache](../../pivotcache/)
* class [PivotCaches](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(WebWorksheet, WebCellArea) {#add}

Adds a PivotCache from sheet

```csharp
public PivotCache Add(WebWorksheet sourceSheet, WebCellArea sourceCellArea)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sourceSheet | WebWorksheet | The sheet of source data |
| sourceCellArea | WebCellArea | The range of the sheet |

### See Also

* class [PivotCache](../../pivotcache/)
* class [WebWorksheet](../../webworksheet/)
* class [WebCellArea](../../webcellarea/)
* class [PivotCaches](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## Add(WebWorksheet, WebCellArea, string) {#add_1}

Adds a PivotCache from sheet using the specified name.

```csharp
public PivotCache Add(WebWorksheet sourceSheet, WebCellArea sourceCellArea, string cacheName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sourceSheet | WebWorksheet | The sheet of source data |
| sourceCellArea | WebCellArea | The range of the sheet |
| cacheName | String | The cache name |

### See Also

* class [PivotCache](../../pivotcache/)
* class [WebWorksheet](../../webworksheet/)
* class [WebCellArea](../../webcellarea/)
* class [PivotCaches](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


