I need to display tabular data in data grid. But number of columns (data) will be known only during run time, So i can not use some model class (to represents each row) and bind Collection of this model class to datagrid.
I tried using datatable where i can dynamically add columns and bind to datagrid (Autogeneratedcolumns = "true"). But the problem is when the column name has special characters some time bindings fails. (ex: Column name = "(n)").
So i want to know, is it possible to bind to Dictionary
?
Midhun TpPosted Sep 23, 2016, 9:47 AM
Please go through below forums-
http://stackoverflow.com/questions/24361013/wpf-dictionaryint-liststring-in-datagrid
http://stackoverflow.com/questions/854953/datagridview-bound-to-a-dictionary