1

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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.