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

GridLines in chart.PlotArea

Thread ID:

Created:

Updated:

Platform:

Replies:

74118 May 30,2008 08:30 AM UTC Jun 4,2008 11:39 AM UTC ASP.NET Web Forms (Classic) 4
loading
Tags: XlsIO
Steffen Dunst
Asked On May 30, 2008 08:30 AM UTC

Hi all,

i'm exporting some values into a excel chart via the XlsIO Interface. I will change the grid design in the chart area for the excel chart. Could you please give me a tip which property i must use to change the design (chart.PlotArea)?

Thank's,
Stephan


Steffen Dunst
Replied On May 30, 2008 09:44 AM UTC

Hi,
i have found the option to enable the Grid lines.

chart.PrimaryCategoryAxis.HasMajorGridLines = true;

But how can i change the color of these GridLines?

Stephan


Yavanaarasi G [Syncfusion]
Replied On June 3, 2008 12:42 PM UTC

Hi Stephan,

Thank you for your interest in Syncfusion products.

How can i change the color of the GridLines?

You can change the color of the gridlines by using the IchartGridLine interface. Please refer the below code snippet:


[C#]
IChartGridLine gridLine = chart.PrimaryValueAxis.MajorGridLines;
gridLine.Border.LineColor = Color.Red;


Please let me know if you have any other concerns.

Regards,
G.Yavana


Steffen Dunst
Replied On June 4, 2008 06:40 AM UTC

Thank you


Yavanaarasi G [Syncfusion]
Replied On June 4, 2008 11:39 AM UTC

Hi Stephan,

Thank you for your update.

Please let me know if you have any other concerns.

Regards,
G.Yavana


CONFIRMATION

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.

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

;