PivotGridFieldBase.GetTotalOthersText() Method

Returns the text displayed within the total header which corresponds to the "Others" row/column.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.2.Core.dll

Declaration

public virtual string GetTotalOthersText()
Public Overridable Function GetTotalOthersText As String

Returns

Type Description
String

A string which specifies the default text for the total header which corresponds to the "Others" row/column.

Remarks

The "Others" row/column is displayed when the PivotGridFieldBase.TopValueCount property is set to a positive value and the PivotGridFieldBase.TopValueShowOthersproperty is set to true. In this case, the XtraPivotGrid displays a fixed number of values for the specified column or row field, the remaining field values are combined under the "Others" header.

The GetTotalOthersText method returns the default text displayed within the total header which corresponds to the "Others" row/column. By default, it returns "Others". To customize this text create a descendant of the DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer class and override its GetLocalizedString method. This method should return custom strings when the method's parameter is set to the PivotGridStringId.TopValueOthersRow and PivotGridStringId.TotalFormat values. An instance of the custom Localizer should be assigned to the static DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer.Active property.

See Also