YamMilkTea
June 19th, 2009, 02:15 AM
Hi, I am using window application VS2005 to write a program. The listview will only show the data that meet the criteria set in the combobox.
Is there any way to 'hide' a specific row in the listview instead of removing it? My code is shown below:
Dim abc As System.Windows.Forms.ListViewItem.ListViewSubItem
Select Case ComboBox1.SelectedIndex
Case 0
sitem = ListView1.Items(2).SubItems(3)
If ComboBox1.Text <> abc.Text Then
ListView1.Items(2).Remove() <----- I want to 'hide' instead of removing
End If
End Select
Is there any way to 'hide' a specific row in the listview instead of removing it? My code is shown below:
Dim abc As System.Windows.Forms.ListViewItem.ListViewSubItem
Select Case ComboBox1.SelectedIndex
Case 0
sitem = ListView1.Items(2).SubItems(3)
If ComboBox1.Text <> abc.Text Then
ListView1.Items(2).Remove() <----- I want to 'hide' instead of removing
End If
End Select