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

ChartRangeControlClientGridOptions.Auto Property

Gets or sets a value that specifies whether the grid properties are calculated automatically.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[XtraSerializableProperty]
public bool Auto { get; set; }

#Property Value

Type Description
Boolean

true if the grid is calculated automatically; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Auto
ChartRangeControlClientBase
.GridOptions .Auto

#Remarks

The Auto property is set to true by default, so grid properties (e.g., DateTimeChartRangeControlClientGridOptions.SnapAlignment, ChartRangeControlClientGridOptions.SnapSpacing for each client type; DateTimeChartRangeControlClientGridOptions.GridAlignment for the date-time chart client) are calculated automatically. To cancel automatic grid calculation (the ChartRangeControlClientGridOptions.Auto property is set to false), change the default value of the specific grid property.

The following images demonstrate how the Auto property works together with the ChartRangeControlClientGridOptions.GridSpacing property for the numeric chart client of the range control.

Auto = true, ChartRangeControlClientGridOptions.GridSpacing=4 (the default value) Auto = false, ChartRangeControlClientGridOptions.GridSpacing=2
GridOptions_Auto_True NumericChartClient_GridSpacing
See Also