ListView Custom Search Filter - List(Of T) Method - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: ListView Custom Search Filter - List(Of T) Method (/showthread.php?tid=24158) |
ListView Custom Search Filter - List(Of T) Method - AceInfinity - 12-29-2011 I also have a predicate method, but this works well and should be easy to understand, for those of you who leech and probably don't understand this, well I hope it works for you lol, and to those that don't understand but want to know more about my code, just reply and i'll respond. Code: Public Class Form1 RE: ListView Custom Search Filter - List(Of T) Method - BreShiE - 12-29-2011 What does this do exactly Ace? I would test it out but I don't have VB.NET since I formatted. P.S Good to see you're back? RE: ListView Custom Search Filter - List(Of T) Method - AceInfinity - 12-29-2011 I still administer Tech.Reboot.Pro, so that's still my first priority, but I am not on a indefinite absence anymore here. I just won't bother with any debates on the Support Feather or anything to do with HF on this forum. It's a waste of my time. You'll still see all my latest greatest codes and releases and other stuff on Tech.Reboot.Pro. I use that site exclusively for all my best stuff to share with the members there What this does, is defines a List of type string, formatting each item string as a listview item in the Listview collection based on the search text which is what gets compared to with the List of string which further filters the Listview collection. Much better than using an array because of the methods contained in List(of T) and furthermore List(of T) can deal with larger data, and retrieve data faster than looping through an array. It's also a memory saver in comparison to an arraylist. I tried using predicate in my newest method, but it's not yet compatible to work with subitems as columns more than 1 in a listview control if you want to get or search through items in a specific column, whereas this is fully customizable for that. Edit: I noticed I got removed from my one and only Geek Squad though eventually at some point lol RE: ListView Custom Search Filter - List(Of T) Method - ViolentReality - 12-31-2011 Not bad at all dude, thankyou. RE: ListView Custom Search Filter - List(Of T) Method - AceInfinity - 12-31-2011 No problem, I haven't posted the one i've bound with Predicate here because that method I didn't finish off yet, so it only works with the first column in reality, but this one should work for every last item in the listview and columns included. |