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

How to disable grid lines?

Thread ID:





71353 Jan 28,2008 03:22 PM UTC Jul 18,2011 03:27 PM UTC WPF 3
Tags: Chart
Mike Eshva
Asked On January 28, 2008 03:22 PM UTC

How to disable grid lines but still have labels? I tried with ChartAxis.LineStroke setting Pen.Brash to Transparent but with no success. I also tried to set Pen.Thikness to 0 with no luck.

Administrator [Syncfusion]
Replied On January 29, 2008 05:57 AM UTC

Hi Mike,

You can use the dependency property of ChartArea in the ChartAxis markup extension to disable the GridLines. The following code shows how to set GridLines property to false.





Similary you can set GridLines to false for Secondary axis also.

Let me know if you have any queries

Thanks for your interest in Syncfusion products.


Matt Machalinski
Replied On July 13, 2011 06:31 PM UTC

How do you change the color of these lines? I changed the tick color, but that only changes the actual tick color that is outside of the grid area.

Muralidharan P [Syncfusion]
Replied On July 18, 2011 03:27 PM UTC

Hi Asem,

Thanks for using Syncfusion products.

We can change the gridlines color by using the dependency property GridLineStroke of ChartArea in the ChartAxis. The following code shows how to change the color of GridLines.


Similary you can set GridLines color for Secondary axis also. Based on your requirement we have created a simple sample and the same can be downloaded from the following location.


Let me know if you have any queries

Regards ,


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