Search code examples
wpfbindingwpfdatagrid

WPF DataGrid Binding


I'm using the WPF toolkit datagrid and in the past have always created entities for the grid to bind to, so for example a Contact Entity with Name, Address etc. On the current app I'm working on the user may select from 50 tables and individually select the fields from the tables to generate a view. Clearly here having an Entity to bind to will not work as the binding source will be dynamic.

Question is what do I do?

Thanks


Solution

  • I just blogged about how to dynamically create columns for a DataGrid based on a reusable model.