Question: What does the following ListView code do? private void Listview (string name, string surname) ListViewiten myUpdate = new ListViewItem(+ autoID); ListViewItem.ListViewSubItem rowName = new ListViewItem.ListViewSubItem(myUpdate,
What does the following ListView code do? private void Listview (string name, string surname) ListViewiten myUpdate = new ListViewItem(""+ autoID); ListViewItem.ListViewSubItem rowName = new ListViewItem.ListViewSubItem(myUpdate, name); Listviewitem.ListViewSubItem rowSurname = new ListViewItem.ListViewSubItem(myUpdate, surname); myUpdate SubItems.Add(rowName); myUpdate SubItems.Add(rowSurname); myListView.Items.Add(myUpdate); this.autoID++; this. RemoveOwnedForm(this); Select one: O a updates rowName and rowSurname, and removes the old values from the form. b. adds row Name and rowSumame to the ListView c. updates row Name and rowSurname in the LaView d. removes the current form
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
