How to add items rows to a listview WPF and VB.net
- by leviatan1001
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.