No se cual sea el nombre correcto
![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
Código PHP:
$this->Grid->CellData = array(
array( 'idcontador' => 0,
'cveparte' => '',
'descripcion' => '',
'unidad' => '',
'cantidad' => 0,
'costo' => 0,
'importe' => 0,
),
);
Código PHP:
$i = 0;
while ($row = mysql_fetch_array($r))
{
$this->Grid->CellData[$i]["idcontador"] = $row['idcontador'];
$this->Grid->CellData[$i]["cveparte"] = $row['cveparte'];
$this->Grid->CellData[$i]["descripcion"] = $row['descripcion'];
$this->Grid->CellData[$i]['unidad'] = $row['unidad'];
$this->Grid->CellData[$i]['cantidad'] = $row['cantidad'];
$this->Grid->CellData[$i]['costo'] = $row['costo'];
$this->Grid->CellData[$i]['importe'] = $row['importe'];
$i .= 1;
}
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)