Is it possible to bind a query to a Data Grid without specifying the table or columns?
Let's say I have this query:
string query = "select PersonName from Persons'
but it changes and next time I have:
string query = "select Email from Persons'
I'm using Sqlite Net extension, and I have problems binding without specifying table object explicitely, for example:
listPerson.DataContext = db.Query....
Yes, you can bind any table or columns to datagrid dynamically. first in xaml code verify your columns :
after xaml code you in code behind bind data