windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-57aa9a69.md
Specifies whether to validate data members.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.UI.dll
NuGet Package : DevExpress.Win.Charts
public bool ValidateDataMembers { get; set; }
Public Property ValidateDataMembers As Boolean
| Type | Description |
|---|---|
| Boolean |
true if data members should be validated; otherwise, false. The default value is true.
|
ChartControl chart = new ChartControl();
chart.ValidateDataMembers = true;
Dim chart As ChartControl = 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