PivotGridDataSourceOptions.AutoBindingSettingsEnabled Property
Specifies whether or not the chart’s data binding is automatically adjusted during the creation of a Pivot Chart.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v20.1.dll
NuGet Packages: DevExpress.Charts, DevExpress.WindowsDesktop.Charts
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to automatically adjust the chart’s binding settings; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to AutoBindingSettingsEnabled |
---|---|---|
WinForms Controls | ChartControl |
|
Reporting | XRChart |
|
ASP.NET Web Forms Controls | ChartControlSettings |
|
MVCxChartControl |
|
|
WebChartControl |
|
Remarks
Use the AutoBindingSettingsEnabled and PivotGridDataSourceOptions.AutoLayoutSettingsEnabled properties to adjust your chart to the associated PivotGridControl automatically.
To access the PivotGridDataSourceOptions object, use the ChartControl.PivotGridDataSourceOptions (ChartControlSettings.PivotGridDataSourceOptions) property.
When the AutoBindingSettingsEnabled property is turned on, the following properties are set automatically:
- The ChartControl.SeriesDataMember property;
- The series template‘s SeriesBase.ArgumentDataMember and SeriesBase.ValueDataMembers, as well as its SeriesBase.ArgumentScaleType and SeriesBase.ValueScaleType.
To manually adjust these settings, handle the ChartControl.CustomizeAutoBindingSettings event.
For more information, see Pivot Charting (Integration with a Pivot Grid Control).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoBindingSettingsEnabled property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.