Page 1 of 1

Hide Grid Lines in ColorGrid?

Posted: Fri Dec 18, 2015 1:44 pm
by 16573504
Hi.

How can I hide the grid in a TColorGridSeries at runtime? I can easily hide it using the designer, selecting the series and then "Format/Format/Grid/Visible". But I found no way to access the "Format" property for a series at runtime.

This is how I create the series:

--- snip ---
std::unique_ptr<TColorGridSeries> series(new TColorGridSeries(chart_));

series->Legend->Visible = false;
series->IrregularGrid = false;
series->Marks->Visible = false;

chart_->AddSeries(series.release());

-- snap ---

I tried to use the axes-property on the chart - but that had no effect:

chart_->Axes->Left->Visible = false;
chart_->Axes->Top->Visible = false;
chart_->Axes->Right->Visible = false;
chart_->Axes->Bottom->Visible = false;

What am I missing?

Thanks.

Re: Hide Grid Lines in ColorGrid?

Posted: Mon Dec 21, 2015 12:43 pm
by yeray
Hello,

Try with this:

Code: Select all

series->Pen->Visible = false;