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
2915
ItemSource for Combobox within XamGrid?
posted

Hi,

   I have a XamGrid one of the columns will be a combobox column. Now, I have another similar kind of scenario where the combobox has the itemsource specified from a different StaticResource (according to this post http://es.infragistics.com/community/forums/t/64214.aspx).

However, now I want the combobox to also point to the same data source as that of the XamGrid's source (which is a data table). Is this possible in any way? I cannot have a new Static Resource with the data split across to make it the combobox's item source, we are on v11.2

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello Arpita,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the ComboBox and set it to the ComboBoxColumn’s EditorStyle. This way I was able to bind the ComboBox’ ItemsSource trough the DataContext. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamGridComboColumnBinding.zip
Children