Pages

Monday, September 10, 2012

Binding a grid to a list of list of objects

Binding a grid to a list of list of objects

I have an ObservableCollection> myData

And let's say MyObject has 5 properties : Prop1, Prop2, Prop3, Prop4, Prop5

I would like to show those lists in a grid that would look like this :

----myData[0] (a List)------|----myData[1] (a List)------|

Prop1 | Prop2 | Prop3 | Prop4 | Prop5 | Prop1 | Prop2 | Prop3 | Prop4 | Prop5 |

How should I bind my columns display the data of the correct List of MyObject ?

Thanks !

Answers & Comments...

Answer: 1

I think your question is similar to this: prism/mvvm: binding Columns to DataGrid

by : zapicohttp://stackoverflow.com/users/694693




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog