I have a little problem concerning databinding, infact I have a WPF project where I have a DataGrid Control that I want to bind to a two dimensional array, tried to bind dirrectly using datacontext but it didn't work, it showed all the time an error telling me that the array is not one dimensional, can any one show me how to do ? thanks
Asked
Active
Viewed 3,369 times
1 Answers
1
Those two questions might help you:
How do I bind a WPF DataGrid to a variable number of columns?
programmatically add column & rows to WPF Datagrid
You need to 'transform' one dimension of array to columns and use the other array dimension as rows.