# RadzenPivotColumn<TItem> Class

RadzenPivotColumn component. Must be placed inside a [RadzenPivotDataGrid<T>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotDataGrid-1.md)

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenPivotField<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotField-1.md)
- RadzenPivotColumn<TItem>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenPivotColumn<TItem> : RadzenPivotField<TItem>, IComponent, IHandleEvent, IHandleAfterRender
```

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The type of the PivotDataGrid item. |

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenPivotColumn<TItem>()` | RadzenPivotColumn component. Must be placed inside a [RadzenPivotDataGrid<T>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotDataGrid-1.md) |

## Properties

| Property | Type | Description |
|------|------|-------------|
| HeaderTemplate | `RenderFragment<GroupResult>` | Gets or sets the header template. |
| MaxGroups | `int?` | Gets or sets the maximum number of column groups to display at this level. When the number of distinct values exceeds this limit the most significant groups (ranked by the sorted aggregate or the first aggregate) are kept and the remaining items are combined into a single group labeled with OthersLabel. Set to null (the default) to display all groups. |
| OthersLabel | `string` | Gets or sets the label of the group that combines the remaining items when MaxGroups is exceeded. Set to null by default - the localized OthersText of the parent pivot grid is used. |
| Width | `string` | Gets or sets the width. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Dispose()` | `void` | Disposes the component and removes it from the parent pivot grid. |
| `OnInitialized()` | `void` | Called when the component is initialized. Registers this column with the parent pivot grid. |

## Inherited Members

- From [RadzenPivotField<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenPivotField-1.md): FilterOperator, FilterPropertyType, FilterTemplate, FilterValue, FilterValueTemplate, Filterable, GetFilterOperator, GetFilterProperty, GetFilterValue, GetLogicalFilterOperator, GetSecondFilterOperator, GetSecondFilterValue, GetSortOrder, GetTitle, HasActiveFilter, LogicalFilterOperator, PivotGrid, Property, SecondFilterOperator, SecondFilterValue, SecondFilterValueTemplate, Selected, SetFilterOperator, SetFilterValue, SetLogicalFilterOperator, SetParametersAsync, SetSecondFilterOperator, ShowUpDownForNumericFilter, SortOrder, SortOrderSequence, Sortable, Title, Type
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

