Quantcast
Viewing latest article 5
Browse Latest Browse All 5

Llenar un ListView de un DataSet

Hola, les comento que no soy muy bueno en VB.Net, y me esta dando problemas llenar un ListView a partir de un DataSet, por ejemplo el DataSet, viene con esta información:

Image may be NSFW.
Clik here to view.

Yo utilizo este código:

Try
                        With ListViewBitacora
                            .Items.Clear()
                            .Columns.Clear()
                            .View = View.Details
                            .GridLines = True
                            .FullRowSelect = True
                            ' añadir los nombres de columnas  
                            For c As Integer = 0 To DeserializarServidorUsu.DataSet.Tables(0).Columns.Count - 1
                                .Columns.Add(DeserializarServidorUsu.DataSet.Tables(0).Columns(c).Caption)
                            Next
                        End With

                        With DeserializarServidorUsu.DataSet.Tables(0)
                            For f As Integer = 0 To .Rows.Count - 1

                                Dim dato As New ListViewItem(.Rows(f).Item(0).ToString)
                                ' recorrer las columnas  
                                For c As Integer = 1 To .Columns.Count - 1
                                    dato.SubItems.Add(.Rows(f).Item(c).ToString())
                                Next
                                ListView2.Items.Add(dato)
                            Next
                        End With
                    Catch ex As Exception
                        MessageBox.Show(ex.Message, "Cliente ListViewBitacora ")
                    End Try

                End If

            Catch ex As Exception
            End Try

Y no me muestra el resultado esperado (el resultado esperado, seria igual a la primera imagen), me muestra esto:

Image may be NSFW.
Clik here to view.

Ayuda, por favor. Y gracias...


Viewing latest article 5
Browse Latest Browse All 5

Trending Articles


Girasoles para colorear


mayabang Quotes, Torpe Quotes, tanga Quotes


Tagalog Quotes About Crush – Tagalog Love Quotes


OFW quotes : Pinoy Tagalog Quotes


Long Distance Relationship Tagalog Love Quotes


Tagalog Quotes To Move on and More Love Love Love Quotes


5 Tagalog Relationship Rules


Best Crush Tagalog Quotes And Sayings 2017


Re:Mutton Pies (lleechef)


FORECLOSURE OF REAL ESTATE MORTGAGE


Sapos para colorear


tagalog love Quotes – Tiwala Quotes


Break up Quotes Tagalog Love Quote – Broken Hearted Quotes Tagalog


Patama Quotes : Tagalog Inspirational Quotes


Pamatay na Banat and Mga Patama Love Quotes


Tagalog Long Distance Relationship Love Quotes


BARKADA TAGALOG QUOTES


“BAHAY KUBO HUGOT”


Vimeo 10.7.0 by Vimeo.com, Inc.


Vimeo 10.7.1 by Vimeo.com, Inc.



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>