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
1425
Combobox in XamDataGrid Header, binding ItemsSource
posted

Using WPF  XamDataGrid 12.1, .NET 4.5, I have a XamDataGrid that contains engineering values. In the header of each column, I have a XamComboBox where the user can select the units to display the value in, ie: feet, meters, or psi,Pa, Mpa, etc.

I've styled the LabelPresenter to contain the XamComboBox, and all works well IF I add the combo box items manually via the XamComboBoxItemsProvider XAML construct, but I cannot get the XamComboBox to bind to an ObservableCollection via the ItemsSource property.

What am I doing wrong? Any examples?