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.
Unfortunately, activation email could not send to your email. Please try again.

GridLines in chart.PlotArea

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 05:44 AM

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 08:42 AM

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 02:40 AM

Thank you


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

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.

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.

;