CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    12

    Question [closed]

    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
    Last edited by YamMilkTea; June 19th, 2009 at 01:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured