Usha T

Usha T

  • NA
  • 44
  • 5.1k

Bind List object to datagrid combobox

May 7 2015 2:09 AM
How to bind list of integers to Datagridcombobox column.
I tried with the following code, It shows empty dropdown
 
<DataGridComboBoxColumn x:Name="cbUnitLevel" Header="Unit Level" ItemsSource="{Binding Path=UnitLevels,Mode=TwoWay}" SelectedValueBinding="{Binding UnitLevels,Mode=TwoWay}" SelectedItemBinding="{Binding Path=UnitLevels,Mode=TwoWay}" DisplayMemberPath="{Binding UnitLevels}"/> 

Answers (2)