Have a PersonInCharge of List type Person in my ViewModel which bind to a GridView.
A comboboxcolumn in the grid, with ItemsSource of a PeopleList of List type Person
the grid shows well, but when i select different items in the combobox, it always return to the original value.
also the > in the grid leftmost column is always on row 1 instead of the highlighted row
anything wrong?
A comboboxcolumn in the grid, with ItemsSource of a PeopleList of List type Person
the grid shows well, but when i select different items in the combobox, it always return to the original value.
also the > in the grid leftmost column is always on row 1 instead of the highlighted row
anything wrong?
<telerik:RadGridView x:Name="PersonInCharge" Margin="5,5,5,0" Height="100" ShowGroupPanel="False" AutoGenerateColumns="False" ItemsSource="{Binding Path=PersonInCharge}" CanUserInsertRows="True"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn x:Name="cbPersonInCharge" Header="Person In Charge" UniqueName="PersonInCharge" EditTriggers="CellClick" ItemsSource="{Binding Path=PeopleList}" DataMemberBinding="{Binding Person}" SelectedValueMemberPath= "PeopleList/Person.ID}" > <telerik:GridViewComboBoxColumn.EditorStyle> </telerik:GridViewComboBoxColumn.EditorStyle> <telerik:GridViewComboBoxColumn.CellTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Path=FirstName}" /> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> </telerik:GridViewComboBoxColumn.CellTemplate> <telerik:GridViewComboBoxColumn.ItemTemplate > <DataTemplate> <StackPanel> <TextBlock Text="{Binding Path=FirstName}" /> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> </telerik:GridViewComboBoxColumn.ItemTemplate> </telerik:GridViewComboBoxColumn>