Filtering a listview bound to a datatable

DoJa

Active member
Joined
Mar 23, 2014
Messages
33
Programming Experience
1-3
I have a datatable bound to a listview which displays the output of a SQL select statement.

I wish to filter what is displayed in the listview based upon text entered into a textbox above it.

I have found numerous examples of filtering listviews in this way but all of them are using hardcoded data into various objects such as lists, dictionarys and string arrays etc. Nothing actually using a datatable/dataset.

If it is not practical to filter the listview directly bound to a datatable for the itemsource, what would be the most sensible alternative. - If I need to convert the datatable to a different type, which would be the best option for this purpose?
 
Back
Top Bottom