What is the best way to bind a dynamic list to a GridView (devexpress) in C#. By saying dynamic list I mean that each time user selects some value from GUI a select query is executed on database on different tables. The table varies for each user selected value and hence no. and types of returning columns are not fixed.
I did a little bit of search and found that dictionary is a good option but is there any better solution ? Could anyone please also give some rough steps on how to bind a dictionary fetching data from db to gridview (exact code is not required).
Please also not that my preference is to reduce the code as much as possible.
Thanks!