We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Minor grid lines without major grid lines

Thread ID:





101946 Dec 7,2011 07:48 PM UTC Dec 12,2011 11:06 AM UTC WPF 3
Tags: Chart
Asked On December 7, 2011 07:48 PM UTC


Does anyone know how to go about creating a chart that has only the minor grid lines displayed but the major ones hidden/transparent?

I created a new chart object and used the following code:

PrimaryAxis.IsAutoSetRange = false;
PrimaryAxis.Range = new DoubleRange(1000, 2000);

PrimaryAxis.SmallTicksPerInterval = 1;

ChartArea.SetSmallGridLineStroke(PrimaryAxis, new Pen(Brushes.Blue, 1));
ChartArea.SetShowGridLines(PrimaryAxis, true);
ChartArea.SetShowMajorGridLines(PrimaryAxis, false);

The first 3 lines of code and the last one work. But I can't see any gridlines of the primary axis at all.

Please help.

Ganesan [Syncfusion]
Replied On December 8, 2011 01:45 PM UTC

Hi James,

We have analyzed the scenario reported and would like to infrom you that the above scenario reported was confirmed as a bug in our control.

Kindly open an incident mentioning the same query that you have posted in our forum so that we can provide you the patch for the issue reported with the specifed timeline.Incident can be opened through Direct-Trac Developer Support System (<https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents>), were you can take advantage of the expertise of a dedicated support engineer and a guaranteed response time. Hope you will take advantage of this system as well. If you have already reported, please ignore this.


Replied On December 8, 2011 07:38 PM UTC


Thanks for the reply.

I was wondering what exactly is causing the bug, is it the way that I have called the functions, is there another way to get the minor grid lines to appear without the major grid lines?


John Bowlin Bosco K [Syncfusion]
Replied On December 12, 2011 11:06 AM UTC

Hi James,

On analysis, the reported scenario is the bug that has to be resolved. To have the fix for the reported issue, could you please raise the ticket in the Direct Trac Developer Support System with a simplified issue reproducing sample? So that, we can provide you with the patch for this issue, as well as you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time. We hope you will take advantage of this system as well.

Direct Trac Link:

Please let us know if you require any further clarifications.

Pauline Bosco


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon