I have a listview that contains a list of clients. Column 1 contains the clientid and column 2 contains the client name.
I also have a janusys grid on the form which will display a filtered invoice listing based on the client that is selected in the client listview.
I have recently added a search button to allow the user to search for an invoice, which works correctly, by displaying the invoice that was searched for in the janus grid. However, I also want to highlight the client in the client list that the invoice corresponds to, I've tried several things with no results.
Here is what I am trying
ClientList is the Listview displaying the clients
strReturnCustomer is the clientid field Im trying to match up to column 1 in the listview
For Counter = 1 To ClientList.ListItems.Count
If ClientList.ListItems(Counter) = strReturnCustomer Then