Back to Devexpress

PivotGridOptionsChartDataSourceBase.ProvideRowFieldValuesAsType Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-data-dot-pivotgridoptionschartdatasourcebase-7ba54133.md

latest4.1 KB
Original Source

PivotGridOptionsChartDataSourceBase.ProvideRowFieldValuesAsType Property

Gets or sets the type to which the row field values are converted, before they are exported to the chart control.

Namespace : DevExpress.XtraPivotGrid.Data

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(null)]
public virtual Type ProvideRowFieldValuesAsType { get; set; }
vb
<DefaultValue(Nothing)>
<Browsable(False)>
Public Overridable Property ProvideRowFieldValuesAsType As Type

Property Value

TypeDefaultDescription
Typenull

A Type object, representing the type to which the row field values are converted.

|

Remarks

If the ProvideRowFieldValuesAsType property is set to null , the row field values are not converted before export.

To specify the type to which the cell and column field values are converted, use the PivotGridOptionsChartDataSourceBase.ProvideCellValuesAsType and PivotGridOptionsChartDataSourceBase.ProvideColumnFieldValuesAsType properties, respectively.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ProvideRowFieldValuesAsType 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.

winforms-customize-pivot-grid-data-before-displaying-it-in-a-chart-control/CS/Form1.cs#L43

csharp
this.productReportsTableAdapter.Fill(this.nwindDataSet.ProductReports);
pivotGridControl1.OptionsChartDataSource.ProvideRowFieldValuesAsType = typeof(string);
pivotGridControl1.OptionsChartDataSource.ProvideColumnFieldValuesAsType = typeof(string);

winforms-customize-pivot-grid-data-before-displaying-it-in-a-chart-control/VB/Form1.vb#L47

vb
productReportsTableAdapter.Fill(nwindDataSet.ProductReports)
pivotGridControl1.OptionsChartDataSource.ProvideRowFieldValuesAsType = GetType(String)
pivotGridControl1.OptionsChartDataSource.ProvideColumnFieldValuesAsType = GetType(String)

See Also

ProvideCellValuesAsType

ProvideColumnFieldValuesAsType

PivotGridOptionsChartDataSourceBase Class

PivotGridOptionsChartDataSourceBase Members

DevExpress.XtraPivotGrid.Data Namespace