Visual Basic - PROBLEMAS CON LISTVIEW...

Life is soft - evento anual de software empresarial
 
Vista:

PROBLEMAS CON LISTVIEW...

Publicado por Yelitza Figueredo (15 intervenciones) el 01/07/2002 15:18:42
Hola chicos, chicas...
Tengo una pregunta acerca del Control Listview:
1) ¿Cómo hago con el Listview si quiero añadir información en varias columnas similar al Flexgrid?

Les agradeceria mucho si me pudieran ayudar.....
Besos.....
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:PROBLEMAS CON LISTVIEW...

Publicado por TheMente (36 intervenciones) el 01/07/2002 20:01:34
Private Sub Form_Load()
With ListView1
.View = lvwReport
.Checkboxes = True
.MultiSelect = True
.FullRowSelect = True

For X = 1 To 21
.ColumnHeaders.Add , , "COLUMNA " & X
Next X

End With

Dim a, b
b = 0
Adodc1.Refresh
Do While Not Adodc1.Recordset.EOF
b = b + 1
With Adodc1.Recordset
ListView1.ListItems.Add , , .Fields(0).Value
For a = 1 To 20
ListView1.ListItems(b).SubItems(a) = .Fields(a).Value
Next a
.MoveNext
End With
Loop

End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar