Hi Everyone,
I am using the Microsoft SQLite PCL classes to access a SQLite db on windows phone/android (and eventually ios). In our app an end user (consultant) can configure sql statements to run and display inside the app. E.g. one customer might have:
select name,address1, phone from customers
another customer might configure it to have select address1, fax from customers
so the number of columns returned and also the names/types may change dynamically. What we want to do is take the sql statement and then load the results into a listview. At the moment we get a list array of the values in the columns (due to some limitations in the app).... I am trying to work out a way to dynamically create a template to display the results of any sql statement that the end user throws at us. We don't have an object model behind each sqlstatement as we don't know what it is going to be in advance.
Any ideas appreciated.
Regards
Mike