![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/07/2006, 20:49
|
![Avatar de yetrus](http://static.forosdelweb.com/customavatars/avatar132987_3.gif) | | | Fecha de Ingreso: marzo-2006
Mensajes: 252
Antigüedad: 18 años, 10 meses Puntos: 0 | |
Listview Con Access .net 20003 NIÑOS TENGO UN PROBLEMITA Y TENGO LAS PATAS HELADAS ASI QEU ME BOY A COSAR, PERO ANTES LE CUENTO MIS DRAMAS
KERO CONCETAR AUN LISTVIEW CON ACCESS , LA CONECCION ESTA LISTA , ME MUESTRA LOS DATOS DE LA PRIMETRA COLUMNA DE LA TABLA EN LA PRIMERA COLUNMA DE MI LISTVIEW , PERO LO QEU NO CACH0 ES COMO COLOCAR LOS DATOS DE LA SEGUNDA COLUNA EN EL LA SEGUNAD COLUNA DEL LISTVIEW Sub CargaLista()
Dim conn As New OleDbConnection(ruta)
conn.Open()
cmd1.Connection = conn
cmd1.CommandType = CommandType.Text
ListViewClientes.Items.Clear()
cmd1.CommandText = "Select * from clientes order By rut"
Dim dr As OleDb.OleDbDataReader
dr = cmd1.ExecuteReader
While dr.Read
ListViewClientes.Items.Add(dr.GetString(0))
End While
dr.Close()
conn.Close()
End Sub
SI COLOCO ADEMAS DEL QEU YA ESTA PUESTO LA SIGUIENTE LINEA "ListViewClientes.Items.Add(dr.GetString(1.2.3.N.. . .))"
ME METE TODOS LOS DATOS DE LAS COLUNAS DE LA TABLA EN LA MISMA COLUMNA DEL LISTVIEW OSEA LA PRIMERA COLUMNA DEL LISTVIEW
ALGUNA IDEA? |