I want to bind an 'ObservableCollection' to a Silverlight dataGrid and allow the contents to be editable.
I've got the following XAML, which allows the editing in the UI, but once I click off the row it changes back to the original.
I'm obviously missing something, any ideas?
<sdk:DataGrid AutoGenerateColumns="False"
Height="81"
Margin="520,349,60,0"
Name="MessageBoxButtons"
ItemsSource="{Binding Path=ButtonsView}"
AlternatingRowBackground="Gainsboro"
RowBackground="White"
HeadersVisibility="All"
BorderThickness="2"
VerticalAlignment="Top"
CanUserSortColumns="False">
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn Binding="{Binding}"
CanUserReorder="True"
CanUserResize="True"
CanUserSort="True"
Width="*"
Header="Button Text" />
</sdk:DataGrid.Columns>
</sdk:DataGrid>