Class
RadPivotGrid

RadPivotGrid is a control which provides functionality similar to the functionality of PivotTables in MS Excel. It aggregates large chunks of data and displays them in a human readable way.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Data Controls")]
public class RadPivotGrid : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPrintable, IChartDataProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPivotGrid

Implements: IAnalyticsProviderIBindableComponentIChartDataProviderIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedIPrintableISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Dispose(bool)RadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.WndProc(ref Message)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.GetInputElement()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadPivotGrid()

Initializes a new instance of the RadPivotGrid class with default settings. Creates an empty pivot grid control that can be configured to display aggregated data from various data sources.

Declaration

cs-api-definition
public RadPivotGrid()

Properties

AggregateDescriptions

A collection of PropertyAggregateDescription which describes how the values in the cells are calculated (aggregated).

Declaration

cs-api-definition
[Browsable(true)]
public AggregateDescriptionsCollection AggregateDescriptions { get; }

Property Value

AggregateDescriptionsCollection

AggregatesLevel

Gets or sets the depth of the Aggregates groups among the other groups when more than one aggregate is used.

Declaration

cs-api-definition
[Browsable(true)]
public int AggregatesLevel { get; set; }

Property Value

int

AggregatesPosition

Gets or sets the axis of the Aggregates groups when more than one aggregate is used.

Declaration

cs-api-definition
[Browsable(true)]
public PivotAxis AggregatesPosition { get; set; }

Property Value

PivotAxis

AllowContextMenu

Gets or sets a value indicating whether the built-in context menu is enabled.

Declaration

cs-api-definition
public bool AllowContextMenu { get; set; }

Property Value

bool

AllowDefaultScreenTips

Gets or sets a value indicating whether the built-in screen tips are enabled.

Declaration

cs-api-definition
public bool AllowDefaultScreenTips { get; set; }

Property Value

bool

AllowFieldsDragDrop

Gets or sets a value indicating whether fields can be dragged and dropped between different areas of the pivot grid. When enabled, users can reorganize the pivot layout by moving fields between row, column, value and filter areas.

Declaration

cs-api-definition
[Browsable(true)]
public bool AllowFieldsDragDrop { get; set; }

Property Value

bool

AllowGroupFiltering

Gets or sets a value indicating whether Group Filtering is enabled.

Declaration

cs-api-definition
public bool AllowGroupFiltering { get; set; }

Property Value

bool

AllowHorizontalResize

Gets or sets a value indicating whether the user is able to resize columns.

Declaration

cs-api-definition
public bool AllowHorizontalResize { get; set; }

Property Value

bool

AllowSelection

Gets or sets a value indicating whether the user is able to select cells.

Declaration

cs-api-definition
public bool AllowSelection { get; set; }

Property Value

bool

AllowSorting

Gets or sets a value indicating whether the user is able to sort the group labels.

Declaration

cs-api-definition
public bool AllowSorting { get; set; }

Property Value

bool

AllowVerticalResize

Gets or sets a value indicating whether the user is able to resize rows.

Declaration

cs-api-definition
public bool AllowVerticalResize { get; set; }

Property Value

bool

AutoExpandColumnHeaders

Gets or sets a value indicating whether the created column groups should be initially expanded.

Declaration

cs-api-definition
public bool AutoExpandColumnHeaders { get; set; }

Property Value

bool

AutoExpandRowHeaders

Gets or sets a value indicating whether the newly created row groups should be initially expanded.

Declaration

cs-api-definition
public bool AutoExpandRowHeaders { get; set; }

Property Value

bool

ChartDataProvider

Gets or sets the chart data provider.

Declaration

cs-api-definition
[Browsable(true)]
public PivotGridChartDataProvider ChartDataProvider { get; set; }

Property Value

PivotGridChartDataProvider

The chart data provider.

ColumnGrandTotalsPosition

Gets or sets the position of the GrandTotal column in the Columns axis.

Declaration

cs-api-definition
[Browsable(true)]
public TotalsPos ColumnGrandTotalsPosition { get; set; }

Property Value

TotalsPos

ColumnGroupDescriptions

A collection of PropertyGroupDescriptionBase which is used for generating column groups.

Declaration

cs-api-definition
[Browsable(true)]
public ColumnGroupDescriptionCollection ColumnGroupDescriptions { get; }

Property Value

ColumnGroupDescriptionCollection

ColumnGroupsExpandBehavior

Gets or sets the behavior that will set the expand or collapse state for column IGroups.

Declaration

cs-api-definition
[Browsable(false)]
public IItemExpandBehavior<ExpandBehaviorParameters> ColumnGroupsExpandBehavior { get; set; }

Property Value

IItemExpandBehavior<ExpandBehaviorParameters>

ColumnHeaderHeight

Gets or sets the height of the column headers area.

Declaration

cs-api-definition
public int ColumnHeaderHeight { get; set; }

Property Value

int

ColumnHeadersLayout

Gets or sets the layout type of the column headers.

Declaration

cs-api-definition
[Browsable(true)]
public PivotLayout ColumnHeadersLayout { get; set; }

Property Value

PivotLayout

ColumnWidth

Gets or sets the default column width for all columns.

Declaration

cs-api-definition
public int ColumnWidth { get; set; }

Property Value

int

ColumnsSubTotalsPosition

Gets or sets the position of the SubTotal columns in the Columns axis.

Declaration

cs-api-definition
[Browsable(true)]
public TotalsPos ColumnsSubTotalsPosition { get; set; }

Property Value

TotalsPos

DataMember

Gets or sets the name of the list or table in the data source for which RadPivotGrid is displaying aggregated data.

Declaration

cs-api-definition
[Browsable(true)]
public string DataMember { get; set; }

Property Value

string

DataProvider

Gets or sets the IDataProvider that populates the pivot grid with data.

Declaration

cs-api-definition
[Browsable(false)]
public IDataProvider DataProvider { get; set; }

Property Value

IDataProvider

DataSource

Gets or sets the data source for which RadPivotGrid is displaying aggregated data.

Declaration

cs-api-definition
public object DataSource { get; set; }

Property Value

object

DefaultSize

Gets the default size of the control.

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

The default Size of the control.

Overrides Control.DefaultSize

DialogsFactory

Gets or sets the dialogs factory.

Declaration

cs-api-definition
[Browsable(false)]
public PivotGridDialogsFactory DialogsFactory { get; set; }

Property Value

PivotGridDialogsFactory

The dialogs factory.

EmptyValueString

Gets or sets the string that will appears on cells that do not have a value.

Declaration

cs-api-definition
public string EmptyValueString { get; set; }

Property Value

string

ErrorString

Gets or sets the string that will appears on cells for which an error has occured during calculation.

Declaration

cs-api-definition
public string ErrorString { get; set; }

Property Value

string

FilterAreaHeight

Gets or sets the height of the report filters area.

Declaration

cs-api-definition
public int FilterAreaHeight { get; set; }

Property Value

int

FilterDescriptions

A collection of PropertyFilterDescription which defines the fields that are available in the Report Filters area.

Declaration

cs-api-definition
[Browsable(true)]
public FilterDescriptionsCollection FilterDescriptions { get; }

Property Value

FilterDescriptionsCollection

PivotGridElement

Gets the pivot grid element.

Declaration

cs-api-definition
[Browsable(false)]
public RadPivotGridElement PivotGridElement { get; }

Property Value

RadPivotGridElement

The pivot grid element.

PrintStyle

Gets or sets the PivotGridPrintStyle that is responsible for printing the pivot grid.

Declaration

cs-api-definition
[Browsable(true)]
public PivotGridPrintStyle PrintStyle { get; set; }

Property Value

PivotGridPrintStyle

RowGrandTotalsPosition

Gets or sets the position of the GrandTotal row in the Rows axis.

Declaration

cs-api-definition
[Browsable(true)]
public TotalsPos RowGrandTotalsPosition { get; set; }

Property Value

TotalsPos

RowGroupDescriptions

A collection of PropertyGroupDescriptionBase which is used for generating row groups.

Declaration

cs-api-definition
[Browsable(true)]
public RowGroupDescriptionCollection RowGroupDescriptions { get; }

Property Value

RowGroupDescriptionCollection

RowGroupsExpandBehavior

Gets or sets the behavior that will set the expand or collapse state for row IGroups.

Declaration

cs-api-definition
[Browsable(false)]
public IItemExpandBehavior<ExpandBehaviorParameters> RowGroupsExpandBehavior { get; set; }

Property Value

IItemExpandBehavior<ExpandBehaviorParameters>

RowHeadersLayout

Gets or sets the layout type of the row headers.

Declaration

cs-api-definition
[Browsable(true)]
public PivotLayout RowHeadersLayout { get; set; }

Property Value

PivotLayout

RowHeight

Gets or sets the default row height for all rows.

Declaration

cs-api-definition
public int RowHeight { get; set; }

Property Value

int

RowsSubTotalsPosition

Gets or sets the position of the SubTotal rows in the Rows axis.

Declaration

cs-api-definition
[Browsable(true)]
public TotalsPos RowsSubTotalsPosition { get; set; }

Property Value

TotalsPos

ShowFilterArea

Gets or sets a value indicating whether the Report Filters area should be displayed.

Declaration

cs-api-definition
[Browsable(true)]
public bool ShowFilterArea { get; set; }

Property Value

bool

XmlSerializationInfo

Gets or sets the serialization information for RadPivotGrid used by SaveLayout and LoadLayout methods to persist and restore grid settings. By default or when set to null, the ComponentXmlSerializationInfo provided by GetDefaultXmlSerializationInfo() will be used.

Declaration

cs-api-definition
[Browsable(false)]
public ComponentXmlSerializationInfo XmlSerializationInfo { get; set; }

Property Value

ComponentXmlSerializationInfo

Methods

BeginInit()

Signals the start of the control's initialization and suspends layout and data updates. Used during control creation and when loading the control state from a serialized form.

Declaration

cs-api-definition
public override void BeginInit()

Overrides RadControl.BeginInit()

BeginUpdate()

Puts RadPivotGrid in update mode and suspends visual refreshing. Use this method before making multiple property changes to improve performance by preventing multiple layout updates. Must be paired with a subsequent call to EndUpdate() when finished making changes.

Declaration

cs-api-definition
public void BeginUpdate()

CreateChildItems(RadElement)

Creates the child elements for the RadPivotGrid control. Initializes the pivotGridElement and adds it to the parent's collection.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element that will contain the created child elements.

Overrides RadControl.CreateChildItems(RadElement)

CreatePivotGridElement()

Creates the RadPivotGridElement which is the main visual element of the pivot grid control. Override this method to create a custom pivot grid element when inheriting from RadPivotGrid.

Declaration

cs-api-definition
protected virtual RadPivotGridElement CreatePivotGridElement()

Returns

RadPivotGridElement

A new instance of RadPivotGridElement that will be used to render the pivot grid.

CreateXmlSerializer(ComponentXmlSerializationInfo)

Creates the XML serializer used for saving and loading the pivot grid's layout. Override this method to provide custom serialization behavior when extending this control.

Declaration

cs-api-definition
protected virtual ComponentXmlSerializer CreateXmlSerializer(ComponentXmlSerializationInfo info)

Parameters

info

ComponentXmlSerializationInfo

The serialization information that defines which properties to serialize.

Returns

ComponentXmlSerializer

A ComponentXmlSerializer instance that will handle the actual serialization.

EndInit()

Signals the end of the control's initialization and resumes layout and data updates. The control will be refreshed to reflect all changes made during initialization.

Declaration

cs-api-definition
public override void EndInit()

Overrides RadControl.EndInit()

EndUpdate()

Ends the update mode and refreshes the pivot grid's visual representation. Call this method after BeginUpdate() once you've finished making property changes to apply all pending updates at once.

Declaration

cs-api-definition
public void EndUpdate()

GetDefaultXmlSerializationInfo()

Gets the default serialization information for RadPivotGrid used by SaveLayout and LoadLayout methods to persist and restore grid settings to/from XML. This includes configuration of rows, columns, aggregates, filters, and appearance settings.

Declaration

cs-api-definition
protected virtual ComponentXmlSerializationInfo GetDefaultXmlSerializationInfo()

Returns

ComponentXmlSerializationInfo

A ComponentXmlSerializationInfo instance configured with the default settings for RadPivotGrid serialization.

IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

Declaration

cs-api-definition
protected override bool IsInputKey(Keys keyData)

Parameters

keyData

Keys

One of the Keys values.

Returns

bool

true if the specified key is a regular input key; otherwise, false.

Overrides RadControl.IsInputKey(Keys)

LoadLayout(Stream)

Loads the RadPivotGrid's layout configuration from an XML stream. Restores group configurations, column widths, row heights, and other display settings from the provided stream.

Declaration

cs-api-definition
public virtual void LoadLayout(Stream stream)

Parameters

stream

Stream

The stream containing the saved layout information.

LoadLayout(XmlReader)

Loads the RadPivotGrid's layout configuration from an XML reader. Restores group configurations, column widths, row heights, and other display settings from the provided XML reader.

Declaration

cs-api-definition
public virtual void LoadLayout(XmlReader xmlReader)

Parameters

xmlReader

XmlReader

The XmlReader containing the saved layout information.

LoadLayout(string)

Loads the RadPivotGrid's layout configuration from an XML file. Restores group configurations, column widths, row heights, and other display settings from the specified file.

Declaration

cs-api-definition
public virtual void LoadLayout(string fileName)

Parameters

fileName

string

The path to the file containing the saved layout information.

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

A KeyEventArgs that contains the event data.

Overrides RadControl.OnKeyDown(KeyEventArgs)

OnLostFocus(EventArgs)

Raises the LostFocus event.

Declaration

cs-api-definition
protected override void OnLostFocus(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadControl.OnLostFocus(EventArgs)

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

Declaration

cs-api-definition
protected override void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

A MouseEventArgs that contains the event data.

Overrides RadControl.OnMouseDown(MouseEventArgs)

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

A MouseEventArgs that contains the event data.

Overrides RadControl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Raises the event.

Declaration

cs-api-definition
protected override void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs instance containing the event data.

Overrides RadControl.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

A MouseEventArgs that contains the event data.

Overrides RadControl.OnMouseWheel(MouseEventArgs)

OnScreenTipNeeded(object, ScreenTipNeededEventArgs)

Called when the screen tip is needed.

Declaration

cs-api-definition
protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)

Parameters

sender

object

The sender.

e

ScreenTipNeededEventArgs

The ScreenTipNeededEventArgs instance containing the event data.

Overrides RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)

Print()

Directly prints the RadPivotGrid to the default printer without showing any printer settings dialog. This is a convenience method that uses the current default printer with default settings.

Declaration

cs-api-definition
public virtual void Print()

Print(bool)

Prints the RadPivotGrid with an option to display the printer settings dialog first.

Declaration

cs-api-definition
public virtual void Print(bool showPrinterSettings)

Parameters

showPrinterSettings

bool

When true, displays the printer settings dialog before printing; when false, prints directly using default settings.

Print(bool, RadPrintDocument)

Prints the RadPivotGrid using a specified print document and with an option to display the printer settings dialog.

Declaration

cs-api-definition
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)

Parameters

showPrinterSettings

bool

When true, displays the printer settings dialog before printing; when false, prints directly using default settings.

document

RadPrintDocument

An instance of RadPrintDocument used to control the print process and settings.

PrintPreview()

Opens a print preview dialog that allows viewing and adjusting how the pivot grid will appear when printed. This method creates a new RadPrintDocument with default settings.

Declaration

cs-api-definition
public virtual void PrintPreview()

PrintPreview(RadPrintDocument)

Opens a print preview dialog that allows viewing and adjusting how the pivot grid will appear when printed. This overload uses a specified RadPrintDocument for more control over the printing process.

Declaration

cs-api-definition
public virtual void PrintPreview(RadPrintDocument document)

Parameters

document

RadPrintDocument

An instance of RadPrintDocument used to control the print process and settings.

ReloadData()

Recalculates all the aggregated data and refreshes the visual representation of the pivot grid. Use this method when the underlying data source has changed and you need to update the pivot grid.

Declaration

cs-api-definition
public void ReloadData()

SaveLayout(Stream)

Saves the RadPivotGrid's current layout configuration to a stream in XML format. This includes group configurations, column widths, row heights, and other display settings. The stream remains open after the operation completes.

Declaration

cs-api-definition
public virtual void SaveLayout(Stream stream)

Parameters

stream

Stream

The stream where the layout information will be written.

SaveLayout(XmlWriter)

Saves the RadPivotGrid's current layout configuration to XML format. This includes properties like group configurations, column widths, row heights, and other display settings.

Declaration

cs-api-definition
public virtual void SaveLayout(XmlWriter xmlWriter)

Parameters

xmlWriter

XmlWriter

The XmlWriter used to write the serialized layout data.

SaveLayout(string)

Saves the RadPivotGrid's current layout configuration to a file in XML format. This includes group configurations, column widths, row heights, and other display settings.

Declaration

cs-api-definition
public virtual void SaveLayout(string fileName)

Parameters

fileName

string

The path to the file where the layout information will be saved.

ShowFieldList()

Shows the Field Chooser dialog which allows users to select and organize fields in the pivot grid. Users can drag fields to different areas (row fields, column fields, data fields, or filter fields) to reorganize the pivot grid.

Declaration

cs-api-definition
public void ShowFieldList()

Events

AggregateDescriptorElementCreating

Fires when an aggregate descriptor element is being created. Allows for replacing it with a custom element.

Declaration

cs-api-definition
public event AggregateDescriptorElementCreatingEventHandler AggregateDescriptorElementCreating

Event Value

AggregateDescriptorElementCreatingEventHandler

AggregatesPositionElementCreating

Fires when the aggregate position element is being created. Allows for replacing it with a custom element.

Declaration

cs-api-definition
public event AggregatesPositionElementCreatingEventHandler AggregatesPositionElementCreating

Event Value

AggregatesPositionElementCreatingEventHandler

CellCreating

Fires when a cell element is being created. Allows for replacing the default elements with custom ones.

Declaration

cs-api-definition
public event PivotCellCreatingEventHandler CellCreating

Event Value

PivotCellCreatingEventHandler

CellFormatting

Fires when a cell element is updated. Allows for customizing the appearance of the cells.

Declaration

cs-api-definition
public event PivotCellEventHandler CellFormatting

Event Value

PivotCellEventHandler

DataProviderChanged

Fires when the DataProvider property has changed.

Declaration

cs-api-definition
public event DataProviderChangedEventHandler DataProviderChanged

Event Value

DataProviderChangedEventHandler

FilterDescriptorElementCreating

Fires when a filter descriptor element is being created. Allows for replacing it with a custom element.

Declaration

cs-api-definition
public event FilterDescriptorElementCreatingEventHandler FilterDescriptorElementCreating

Event Value

FilterDescriptorElementCreatingEventHandler

GroupDescriptorElementCreating

Fires when a group descriptor element is being created. Allows for replacing it with a custom element.

Declaration

cs-api-definition
public event GroupDescriptorElementCreatingEventHandler GroupDescriptorElementCreating

Event Value

GroupDescriptorElementCreatingEventHandler

GroupElementCreating

Fires when a group element is being created. Allows for replacing the default group elements.

Declaration

cs-api-definition
public event PivotGroupElementCreatingEventHandler GroupElementCreating

Event Value

PivotGroupElementCreatingEventHandler

GroupElementFormatting

Fires when a group element is updated. Allows for customizing its appearance.

Declaration

cs-api-definition
public event PivotGroupElementEventHandler GroupElementFormatting

Event Value

PivotGroupElementEventHandler

GroupExpandedChanged

Fires when a group is expanded or collapsed.

Declaration

cs-api-definition
public event PivotGroupEventHandler GroupExpandedChanged

Event Value

PivotGroupEventHandler

PrintElementFormatting

Fires when a print element is being prepared for painting.

Declaration

cs-api-definition
public event PrintElementEventHandler PrintElementFormatting

Event Value

PrintElementEventHandler

PrintElementPaint

Fires when the print element has been painted. Allows for adding custom painting.

Declaration

cs-api-definition
public event PrintElementPaintEventHandler PrintElementPaint

Event Value

PrintElementPaintEventHandler

RowCreating

Fires when a row element is being created. Allows for replacing the default elements with custom ones.

Declaration

cs-api-definition
public event PivotRowCreatingEventHandler RowCreating

Event Value

PivotRowCreatingEventHandler

RowFormatting

Fires when a row element is updated.

Declaration

cs-api-definition
public event PivotRowEventHandler RowFormatting

Event Value

PivotRowEventHandler

SelectionChanged

Fires when the selection in RadPivotGrid has changed.

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler

UpdateCompleted

Fires when the data provider has finished building the data and the UI was updated.

Declaration

cs-api-definition
public event EventHandler UpdateCompleted

Event Value

EventHandler

In this article
DefinitionConstructorsRadPivotGrid()PropertiesAggregateDescriptionsAggregatesLevelAggregatesPositionAllowContextMenuAllowDefaultScreenTipsAllowFieldsDragDropAllowGroupFilteringAllowHorizontalResizeAllowSelectionAllowSortingAllowVerticalResizeAutoExpandColumnHeadersAutoExpandRowHeadersChartDataProviderColumnGrandTotalsPositionColumnGroupDescriptionsColumnGroupsExpandBehaviorColumnHeaderHeightColumnHeadersLayoutColumnWidthColumnsSubTotalsPositionDataMemberDataProviderDataSourceDefaultSizeDialogsFactoryEmptyValueStringErrorStringFilterAreaHeightFilterDescriptionsPivotGridElementPrintStyleRowGrandTotalsPositionRowGroupDescriptionsRowGroupsExpandBehaviorRowHeadersLayoutRowHeightRowsSubTotalsPositionShowFilterAreaXmlSerializationInfoMethodsBeginInit()BeginUpdate()CreateChildItems(RadElement)CreatePivotGridElement()CreateXmlSerializer(ComponentXmlSerializationInfo)EndInit()EndUpdate()GetDefaultXmlSerializationInfo()IsInputKey(Keys)LoadLayout(Stream)LoadLayout(XmlReader)LoadLayout(string)OnKeyDown(KeyEventArgs)OnLostFocus(EventArgs)OnMouseDown(MouseEventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnScreenTipNeeded(object, ScreenTipNeededEventArgs)Print()Print(bool)Print(bool, RadPrintDocument)PrintPreview()PrintPreview(RadPrintDocument)ReloadData()SaveLayout(Stream)SaveLayout(XmlWriter)SaveLayout(string)ShowFieldList()EventsAggregateDescriptorElementCreatingAggregatesPositionElementCreatingCellCreatingCellFormattingDataProviderChangedFilterDescriptorElementCreatingGroupDescriptorElementCreatingGroupElementCreatingGroupElementFormattingGroupExpandedChangedPrintElementFormattingPrintElementPaintRowCreatingRowFormattingSelectionChangedUpdateCompleted
Not finding the help you need?
Contact Support