Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControl.ValidateDataMembers Property

Specifies whether to validate data members.

Namespace: DevExpress.XtraCharts

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

NuGet Package: DevExpress.Win.Charts

#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