I have a list that contains objects. Within these objects are 6 double arrays. I need to be able to display these arrays in columns in a datagrid.
I have tried to figure out how to bind the list to the datagrid and it has frustrated me most of this day.
Can someone give me step by step instructions as to how I can bind this list of objects to a datagrid ?
The list is just needed for show. It is read only.
(For the person that looked past the wording and provided a solution, thank you)
You can create an ObservableCollection and Bind the collection to the ItemsSource property of the GridView.
You can try this article : http://www.c-sharpcorner.com/UploadFile/mahesh/datagrid-in-wpf/
If you are providing your Custom object and want to get better control, define DataTemplate and specify the properties yourself and make AutogenerateColums to false.