|
The code used in populating combobox is as <DataGridTemplateColumn > <DataGridTemplateColumn.CellTemplate> <DataTemplate >
<ComboBox x:Name="dd" DisplayMemberPath="district" ItemsSource="{Binding Source={StaticResource districtViewSource}}" ></ComboBox> </DataTemplate> </DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
THE PROBLEM IS THAT WHEN I SELECT A PARTICULAR ITEM IN COMBO EVERY COMBOBOX IN ABOVE COLUMN IE IN ALL ROWS AUTOMATICALLY SELECTS THAT ITEM. WHILE IT MUST BE ANOTHER ITEM FOR REMAINING ROWS.
|
|
|
|
|
All caps is the equivalent of shouting - very rude!
You are using the same collection districtViewSource for all the combos, create a copy of the collection and a selecteditem for each combo.
Never underestimate the power of human stupidity
RAH
|
|
|
|