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.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[TypeConverter(typeof(BooleanTypeConverter))]
[XtraSerializableProperty]
public bool AutoBindingSettingsEnabled { get; set; }
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 |
|
ASP.NET Web Forms Controls | WebChartControl |
|
ASP.NET MVC Extensions | ChartControlSettings |
|
.NET Reporting Tools | XRChart |
|
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).