Simple value-display list in ItemSource at DataGridComboBoxColumn

Apr 22, 2009 at 7:10 PM

Is there a simple way in XAML to fill the DataGirdComboBoxColumn with a pair (value, display) as I did with .net dropdownlist?

I read articles about binding displayed values over an objectprovider, enums and simple literal values. But I want to display two values "Male" and "Female" and store at database "M" and "F".

Isn't a simple way to do it? I see more complex ways to fill this values in at code, but it seems too much work for a simple "select your gender from the dropdown"

<dg:DataGridComboBoxColumn Header="TIPO" SelectedItemBinding="{Binding Path=TIPO}">

Thanks and sorry for my english