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
12875
how to apply a Value Converter to the ComboBoxColumn in xamGrid
posted

Hi,

 

How do you apply a Value Converter to the new ComboBoxColumn in the  xamGrid? 

The new ComboBoxColumn has an ItemTemplate like the TemplateColumn that we used do use when defining a ComboBox in the EditorTemplate.  In the ComboBoxColumn’s ItemTemplate you can define a TextBlock and simply bind it to your ValueConverter.

 

Note that if you use a ValueConverter you won’t be using the comboBoxColumn’s DisplayMemberPath property.

 

I’ll attach a sample that demonstrates the basic behavior.

SL_xamGrid_ValueConverter.zip