Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1385
Updating field layout when DataSource changes
posted

I have a XamDataGrid which is being bound to an ObservableCollection<BindableDynamicDictionary> (via MVVM) since we do not know the columns in advance.  When the view is first bound to the view model, XamDataGrid.FieldLayoutInitialized is called and the columns are added dynamically.  So far everything is fine.

The problem I am having is that the underlying data can change including the columns.  When the property for the DataSource is changed, the field layout doesn't change and I don't know how to get it to update properly.

Is there a way to get the field layout to change when the DataSource is updated?