Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Change PivotTable Data Source Dialog

The Change PivotTable Data Source dialog allows end-users to select another cell range to use as a PivotTable data source.

XtraSpreadsheet_Dialogs_ChangePivotTableDataSource

Important

Currently, the SpreadsheetControl uses only worksheet data as a data source for a pivot table. External data sources (such as ODC files, OLAP cubes, relational databases, XML files, etc.) are not supported.

End-users can invoke this dialog by clicking the Change Data Source button on the ribbon. Add the Data ribbon group to enable this button (refer to the Getting Started topic for details on how to provide a Ribbon UI for the SpreadsheetControl).

XtraSpreadsheet_Dialogs_ChangePivotTableDataSource_Ribbon

In the dialog’s Table/Range editor, end-users can enter a cell range reference or a table name to use as a data source for the PivotTable report, or select the desired range in the worksheet by clicking the Collapse Dialog button.

Tip

Call the PivotTable.ChangeDataSource method to change the PivotTable data source in code. Refer to the How to: Change a Data Source for a Pivot Table topic for details.

See Also