---
title: "GridPivotField.HideItemByName"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridweb.data/gridpivotfield/hideitembyname/"
product: "Aspose.Cells for .NET API Reference"
description: "GridPivotField method. Sets whether the specific PivotItem in a data field is hidden"
---

## GridPivotField.HideItemByName method

Sets whether the specific PivotItem in a data field is hidden.

```csharp
public void HideItemByName(string name, bool isHidden)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | the name of the pivotItem in the pivotField. |
| isHidden | Boolean | whether the specific PivotItem is hidden |

### See Also

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


