This is a migrated thread and some comments may be shown as answers.

How to Change RadChartView Grid Background Color

1 Answer 143 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Bahman
Top achievements
Rank 1
Bahman asked on 15 May 2018, 01:28 PM
 Hi, how do I change the background color of the grid in radgridview in windows form?
And how do I remove points from the line?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 May 2018, 06:16 AM
Hi Bahman,

I believe that you are using RadChartView not RadGridView. In this case, you can use the following code to remove the BackColor and change the lines style:
CartesianArea area = this.radChartView1.GetArea<CartesianArea>();
area.ShowGrid = true;
CartesianGrid grid = area.GetGrid<CartesianGrid>();
grid.DrawHorizontalFills = false;
grid.DrawVerticalFills = false;
grid.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Solid;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
Bahman
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or