## GridPivotField class

Represents a field in a PivotTable report.

```csharp
public class GridPivotField
```

## Properties

| Name | Description |
| --- | --- |
| [DisplayName](../../aspose.cells.griddesktop.data/gridpivotfield/displayname/) { get; set; } | Represents the PivotField display name. |
| [Function](../../aspose.cells.griddesktop.data/gridpivotfield/function/) { get; set; } | Represents the function used to summarize the PivotTable data field. |
| [IsAscendSort](../../aspose.cells.griddesktop.data/gridpivotfield/isascendsort/) { get; set; } | Indicates whether the specified PivotTable field is autosorted ascending. |
| [IsAutoSort](../../aspose.cells.griddesktop.data/gridpivotfield/isautosort/) { get; set; } | Indicates whether the specified PivotTable field is automatically sorted. |
| [Position](../../aspose.cells.griddesktop.data/gridpivotfield/position/) { get; set; } | Represents the PivotField index in the PivotFields. |

## Methods

| Name | Description |
| --- | --- |
| [HideItem](../../aspose.cells.griddesktop.data/gridpivotfield/hideitem/)(int, bool) | Sets whether the specific PivotItem in a data field is hidden. |
| [HideItemByName](../../aspose.cells.griddesktop.data/gridpivotfield/hideitembyname/)(string, bool) | Sets whether the specific PivotItem in a data field is hidden. |
| [HideItemByValue](../../aspose.cells.griddesktop.data/gridpivotfield/hideitembyvalue/)(string, bool) | Sets whether the specific PivotItem in a data field is hidden. |

### See Also

* namespace [Aspose.Cells.GridDesktop.Data](../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../)


