Skip to content

Conversation

natakazakova
Copy link
Contributor

No description provided.

@DevExpressExampleBot
Copy link
Contributor

Please correct the project and update this pull request by pushing a new commit.

Failed convert to VB

https://codecentralfarm.devexpress.devx/job/winforms-charts-use-automatic-date-time-scale-modes-of-an-axis_24.2.1+/4/console

@DevExpressExampleBot
Copy link
Contributor

Please correct the project and update this pull request by pushing a new commit.

Failed convert to VB

https://codecentralfarm.devexpress.devx/job/winforms-charts-use-automatic-date-time-scale-modes-of-an-axis_24.2.1+/5/console

Natalia Kazakova (DevExpress) and others added 2 commits August 12, 2025 18:09
@DevExpressExampleBot
Copy link
Contributor

Please correct the project and update this pull request by pushing a new commit.

Failed convert to VB

https://codecentralfarm.devexpress.devx/job/winforms-charts-use-automatic-date-time-scale-modes-of-an-axis_24.2.1+/9/console

@DevExpressExampleBot
Copy link
Contributor

Please correct the project and update this pull request by pushing a new commit.

Failed convert to VB

https://codecentralfarm.devexpress.devx/job/winforms-charts-use-automatic-date-time-scale-modes-of-an-axis_24.2.1+/10/console


## Files to Review

* [Form1.cs](./CS/DateTimeAggregation/Form1.cs) (VB: [Form1.vb](./VB/DateTimeAggregation/Form1.vb))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example throws an unhandled exception (select the grid alignment other than Auto, then select the "Automatic" scale mode). Update the code as follows (a quick fix):

void SetAutomaticScaleMode() {
    ResetAxisOptions(); // Add this line.
    AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Automatic;
    UpdateGridAlignment(1);
}

void SetAxisXGridAuto() {
    AxisX.DateTimeScaleOptions.AutoGrid = true;
    cbGridAlignment.SelectedIndex = 0; // Add this line.
}

@iam0k iam0k closed this Aug 20, 2025
@iam0k iam0k deleted the nk-readme branch August 20, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants