Ver Mensaje Individual
  #10 (permalink)  
Antiguo 10/06/2005, 05:01
Avatar de Jose_minglein2
Jose_minglein2
 
Fecha de Ingreso: noviembre-2004
Mensajes: 2.344
Antigüedad: 19 años, 7 meses
Puntos: 8
ah bueno, claro, para ello puedes utilizar un datatable

y en vez de meterlo en un arraylist (suponemos que dt es el datatable y fila un datarow con las columnas definidas, ok???

(te lo pongo en VB)

Código PHP:
dim dir as System.IO.Directory 
dim archivos 
as array = a.GetFiles(path);

dim i as integer0;
while 
i<imprimibles.Length

if archivo(0).tostring.endwith(".pdf") or ..
fila ds.NewRow()
fila("nombre") = archivo(i)
fila("ultimafecha") = system.io.file.GetLastAccessTime(path archivo(i))
fila("creacion") = system.io.file.getCreationTime(path archivo(i))
...
ds.rows.add(fila)
end if
i+=1
end 
while 
Y luego al datagrid le pasas el datatable como datasource