corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionschartdatasource.md
Gets or sets whether a chart control must display selected cells or all the data of the PivotGrid control.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.PivotGrid.v25.2.Core.dll
NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
[DefaultValue(true)]
public virtual bool SelectionOnly { get; set; }
<DefaultValue(True)>
Public Overridable Property SelectionOnly As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if only selected data is displayed in a chart control; false if all the data is displayed in a chart control.
|
You can access this nested property as listed below:
| Library | Object Type | Path to SelectionOnly |
|---|---|---|
| WinForms Controls | PivotGridControl |
.OptionsChartDataSource .SelectionOnly
| | .NET Reporting Tools | XRPivotGrid |
.OptionsChartDataSource .SelectionOnly
|
If the SelectionOnly property is set to true , a chart control visualizes data that is selected in the PivotGrid control. Updating the selection automatically updates the chart control.
If the SelectionOnly property is set to false , the chart control visualizes the PivotGrid’s data in its entirety. If the PivotGrid’s display information is updated, the chart control is updated as well.
See Also
PivotGridOptionsChartDataSource Class