This project is read-only.

WPF DataGrid - Binding to EntityCollection

Topics: Bug Report Forum, Developer Forum, User Forum
Jun 10, 2010 at 1:24 AM

Hello everyone,

Does anyone encounter any problems while binding a datagrid to an EntityCollection?

For example, if I hava an Order entity which has a collection of Items. (So the Items is a navigation property of Order, which is also an EntityCollection)

Now in the code i set the DataGrid's DataContext to Order.Items

When I run the application, the DataGrid is populated nicely but the DataGrid became unsortable, the header columns are no longer clickable.

Anyone know what's wrong?

Thank you.