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
1160
How to bind ComboBox using XAMGrid ?
posted

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

Parents
  • 2490
    Offline posted

    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.

    XamGrid_ComboBox.zip
Reply Children