listview rows hiding vb.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marfi95@yahoo.com

    #1

    listview rows hiding vb.net

    Is there a way to hide a row in a listview w/o removing it ?

    Or if I have to use a hidden listview to store another view, a way to
    duplicate the contents extremely fast. there could be thousands of
    rows in the list.

  • rb

    #2
    Re: listview rows hiding vb.net

    marfi95@yahoo.c om wrote:
    >Is there a way to hide a row in a listview w/o removing it ?
    >
    >Or if I have to use a hidden listview to store another view, a way to
    >duplicate the contents extremely fast. there could be thousands of
    >rows in the list.
    >
    >
    >
    have you tried a query?

    Dim connDB As New ADODB.Connectio n
    Dim sqlcmd As New ADODB.Command
    Dim rs As New ADODB.Recordset

    your connection string to database

    sqlcmd.ActiveCo nnection = connDB

    sqlcmd.CommandT ext = "sql statement" or use a text string to
    create adhoc query
    sqlcmd.CommandT ype = ADODB.CommandTy peEnum.adCmdTex t

    rs = sqlcmd.Execute

    Populate listview.


    Comment

    Working...