Bom sou um pouco inexperiente, e venho pedir ajuda de vocês. tenho um pagina que tem um dbgrid, e varios botões (A, B, C, D, E, F, etc) quando chamo a pagina agenda.php ela insere um dbdrid Nome Telefone Celular Açougue Do Frasson (33) 3271-9906 Alvaro (consultor Linux) (33) 9917-8678 (33) 8815-4576 ANG (33) 3279-3200 Armazem Diniz (33) 3221-2550 ART PRINT (31) 3384-2687 ASTEC - Contabilidade (33) 3271-5380 Segue o script: <body> <?php require_once("rpcl/rpcl.inc.php"); include 'files/d3sql_grid.php'; //Includes use_unit("forms.inc.php"); use_unit("extctrls.inc.php"); use_unit("stdctrls.inc.php"); use_unit("qooxdoo/stdctrls.inc.php"); //Class definition class Page1 extends Page { public $btA = null; public $btB = null; public $btC = null; public $btD = null; function Page1Create($sender, $params) { $cod_id= $_SESSION['id']; $db = new D3Sql; $db->baglan('192.168.1.128','root','scl2615a50'); // Connecting Mysql Server $db->dbsec('Agenda'); // Select Database $db->sql("select Nome, Telefone, Celular from agenda where nome like 'A%' and user_id=$cod_id' order by nome ASC "); // Execute Query return Datasource ?> <br> <DIV>. <?php $db->style=array( 'row1'=>'example_row1_style', 'row2'=>'example_row2_style', 'thead'=>'example_thead_style' ); echo $db->grid(); // Print Grid With Style ?> </div></br>.<?php } function btAClick($sender, $params) { document.clear(); $cod_id= $_SESSION['id]; $db = new D3Sql; $db->baglan('192.168.1.128','root','scl2615a50'); // Connecting Mysql Server $db->dbsec('Agenda'); // Select Database $db->sql("select Nome, Telefone, Celular from agenda where nome like 'A%' and user_id='$cod_id' order by nome ASC "); // Execute Query return Datasource ?> <br> <DIV>. <?php $db->style=array( 'row1'=>'example_row1_style', 'row2'=>'example_row2_style', 'thead'=>'example_thead_style' ); echo $db->grid(); // Print Grid With Style ?> </div></br>.<?php } function btBClick($sender, $params) { $cod_id= $_SESSION['id']; $db = new D3Sql; $db->baglan('192.168.1.128','root','scl2615a50'); // Connecting Mysql Server $db->dbsec('Agenda'); // Select Database $db->sql("select Nome, Telefone, Celular from agenda where nome like 'B%' and user_id='$cod_id' order by nome ASC "); // Execute Query return Datasource ?> <br> <DIV>. <?php $db->style=array( 'row1'=>'example_row1_style', 'row2'=>'example_row2_style', 'thead'=>'example_thead_style' ); echo $db->grid(); // Print Grid With Style ?> </div></br>.<?php } } global $application; global $Page1; //Creates the form $Page1=new Page1($application); //Read from resource file $Page1->loadResource(__FILE__); //Shows the form $Page1->show(); ?> </body> </html> quando clicko no botão "A" ou outro qualquer ele coloca um novo DBGRID de baixo do já criado, eu queria saber como limpar o DBGRID incial e aparecer um novo DBGRID. .