ChartControl.ValidateDataMembers Property
Specifies whether to validate data members.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.UI.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if data members should be validated; otherwise, false. The default value is true. |
Remarks
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:
- SeriesBase.ArgumentDataMember
- SeriesBase.ColorDataMember
- SeriesBase.ToolTipHintDataMember
- SeriesBase.ValueDataMembers
- SeriesDataSourceColorizer.SeriesColorMember
- SeriesDataSourceColorizer.SeriesKeyMember
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