c# - Listview Details view not displaying anything -


I am trying to use the description view mode in a list view's winforms, but none of the items displayed Not happening The list view is increasing itself because the objects are added, but nothing is being displayed.

This item displays items in list mode, but not in description mode.

I got the following code, any thoughts?

  forms_listView.Columns.Add ("URL"); Forms_listView.Columns.Add ("status");   

and

  ListViewItem lvi = new ListViewItem (); Lvi.Tag = form; Lvi.Text = form.URL; Lvi.Name = "URL"; ListViewItem.ListViewSubItem subItem = New ListViewItem.ListViewSubItem (LVI, "Status"); SubItem.Name = "status"; SubItem.Text = "" + form.Position; Lvi.SubItems.Add (All Items); Forms_listView.Items.Add (LVI);    

I found my problem I listview.Clear () Calling the method that says in the documentation that it removes all the objects and all the columns, which were not producing any items to display.

Comments