Divide canvas and SetLogz

Hi, I do as in the following:

  // Canvas 01
  TCanvas *c01 = new TCanvas("c01","Canvas_01",0,0,600,300);
  c01->SetFillColor(10);
  c01->SetGrid();
  c01->Modified();
  c01->Divide(2,1);
  c01->cd(1);
  c01->SetLogz();
  MyHisto_01->Draw("colz");
  c01->cd(2);
  MyHisto_11->Draw("colz");
  c01->cd();
  c01->Update();
  gPad->Modified();

but it seems that both the SetGrid() command and the SetLogz() are not considered.
Any comment?
Thank you in advance.
Regards
Davide

You must set these properties for each pad. The pad does not inherits these two properties from the parent pad.
You can also set these properties global via gStyle.

Rene