Hi,
We are using XAMGrid to bind data. But in one column we have multiple comma separated data, these data we want to bind in comboBox. Please let us aware how to bind data in combo box with in XAMGrid.
We are using XAMGrid not XAMDataGrid. Your help would be appreciate.
Thanks
Thanks for your Reply.
As per your suggestion or demo sample We followed way to bind data in comboBox with in XAMGrid. But here problem is we are following MVVM pattern. We added separate class to bind item source for combo box as per demo sample and this class is bind as resource key. But In our application data is not showing in combo Box. can you please let us aware any other example that using MVVM to bind grid Data and with in this grid we can use combo box.
Hello,
The Columns in the XamGrid are not derived from FrameworkElement, which means that they does not have DataContext and when binding the ItemsSource of the ComboBoxColumn you should specify the Source of the binding. You should be able to bind to any collection which implements IEnumerable, so you can split the data and convert it to list of objects. You can than create a StaticResource and bind it to the ItemsSource.
Following this approach I have created a small sample application, you can find it as an attached file.