Hiding The Gridlines On An ASP.Net Chart Control

asp.net, charts

Solution

Set the Axis.MajorGrid.Enabled property to false for the x and y axes:

Chart1.ChartAreas["YourChartArea"].AxisX.MajorGrid.Enabled = false;
Chart1.ChartAreas["YourChartArea"].AxisY.MajorGrid.Enabled = false;

Problem

I've made some graphs in my ASP.Net MVC application using the ASP.Net MSChart control. I cant seem to find the property for hiding the gridlines, anyone know how this is done? Thanks

Original source