10156 : I would like to get rid of the grid in one of my gantt charts (I want it to be all chart, no grid).

Question

I would like to get rid of the grid in one of my gantt charts (I want it to be all chart, no grid).  If I set the width of the grid to 0, the gantt instance starts throwing exceptions.  What is the best way to make the grid invisible?

Answer

True, the grid need to indicate row heights. What you should do is to hi-jack the grid-control and put it somewhere else, out of sight…

Like this:

private void HideGrid_Click(object sender, System.EventArgs e)
{
  gantt1.Grid.Parent=panel1;
}

Leave a Reply