How to add items rows to a listview WPF and VB.net

Posted by leviatan1001 on Stack Overflow See other posts from Stack Overflow or by leviatan1001
Published on 2010-04-04T20:04:17Z Indexed on 2010/04/04 20:13 UTC
Read the original article Hit count: 319

Filed under:
|
|

Im getting crazy with it. It is so easy in windows form, but in wpf it seems to be different. Every example i find is in C# and i cant addapt it. Well, this is the code i have. Atm, i have just defined the columns:

 'diseño de las columnas
        Dim item As ListViewItem = New ListViewItem
        Dim Mi_Lista As GridView = New GridView
        Mi_Lista.AllowsColumnReorder = True

        Dim cine As New GridViewColumn()
        Dim Si3d As New GridViewColumn
        cine.Header = "Cine"
        cine.DisplayMemberBinding = New Binding("Cine")
        Si3d.DisplayMemberBinding = New Binding("si3D")
        cine.Width = 140
        Si3d.Header = "3D"
        Si3d.Width = 50
        Mi_Lista.Columns.Add(cine)
        Mi_Lista.Columns.Add(Si3d)

Thanks in advance.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listview