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?
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?