Back to Devexpress

ChartControl.ValidateDataMembers Property

windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-57aa9a69.md

latest2.7 KB
Original Source

ChartControl.ValidateDataMembers Property

Specifies whether to validate data members.

Namespace : DevExpress.XtraCharts

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

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
public bool ValidateDataMembers { get; set; }
vb
Public Property ValidateDataMembers As Boolean

Property Value

TypeDescription
Boolean

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

|

Remarks

csharp
ChartControl chart = new ChartControl();
chart.ValidateDataMembers = true;
vb
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

ChartControl Class

ChartControl Members

DevExpress.XtraCharts Namespace