I am using teleriks gridview in an mvvm silverlight project. I am struggling to get the editing of a row working. If I double click a cell I am able to change the text of that row. I have a command for a save button. but when I look at my ObservableCollection prog I do not see the changes. so I went and changed everything from observableCollection to just a generic list and now im struggling binding the data to the grid. With the observable collection I am able to initially bind the data to the grid.
private ObservableCollection<Program> _programResults;
public ObservableCollection<Program> ProgramResults
{
get { return _programResults; }
set { SetObject(ref _programResults, value, "ProgramResults"); }
}
<telerik:RadGridView Margin="5,5,5,5" ShowGroupPanel="False" Height="300" ItemsSource="{Binding ProgramResults, Mode=TwoWay}" SelectedItem="{Binding SelectedProgram, Mode=TwoWay}" AutoGenerateColumns="False" VerticalAlignment="Top">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Program ID" DataMemberBinding="{Binding ProgramResults.ProgramID}" MinWidth="300"></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header="Program Name" DataMemberBinding="{Binding Name}" MinWidth="300"></telerik:GridViewDataColumn>
</telerik:RadGridView>