I tried GridConnector() as the data source of the grid, but It’s always error. So I stepped into the source code. The original code is:
public function output($name=“”, $inline=true){
ob_clean();
if ($this->type == “xml”)
header(“Content-type: text/xml”);
echo (string)$this;
}
It always outputs “#Object…”
After I modified “echo (string)$this;” to “echo $this->__toString();”
Then the output is ok.