Skip to main content
A newer version of this page is available. .

ChartControl.ValidateDataMembers Property

Specifies whether to validate data members.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.UI.dll

NuGet Packages: DevExpress.Win.Charts, DevExpress.Win.Design

Declaration

public bool ValidateDataMembers { get; set; }

Property Value

Type Description
Boolean

true if data members should be validated; otherwise, false. The default value is true.

Remarks

ChartControl chart = new ChartControl();
chart.ValidateDataMembers = true;  

When the ValidateDataMembers property is set to true, the Chart Control verifies whether data member fields exist in the data source. The following property values pass this validation:

If a field does not exist in the data source, the System.ArgumentException is thrown with the following message: “The data source does not contain a data member with the <field_name>.”

When the ValidateDataMembers property is set to false, the Chart displays available data source values.

See Also