Sign in to follow this  
Followers 0
Tsukihime

Filtered listview

2 posts in this topic

#1 ·  Posted (edited)

I'm planning out a GUI that builds a list of entries from a text file and displays it in a listview

The text file is composed of two columns separated by tabs. One column lists the "name", the other column lists the "category"

I will parse the file and build a list of categories, which will be placed in a combobox.

The user will be able to select a category from the combobox and the listview will be updated to show only the names that were tagged with the selected category

I have not figured out how I will store the names yet (and the category they long to), but I think the solution to this problem lies in how I choose to store them.

Any suggestions?

Edited by Tsukihime

Share this post


Link to post
Share on other sites



Read the data to a data-array. Loop through the data and filter it based on the combobox selection to create a second temporary array to display the data in the listview.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0