All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ChartControl.ValidateDataMembers Property

Specifies whether to validate data members.

Namespace: DevExpress.XtraCharts

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

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