title: WPF - Xceed GridControl - saving when edited row has focus
body: <p>I have an XCeed grid with cell editing enabled.
  When i make a change to my cell, leave the row and then save it is persited to the database.</p>
  
  <p>But when i hit my save button when the changed cell is still selected the change doens't get persisted. </p>
  
  <p>How can i make sure when i save the current content is saved?</p>
  
  <p>My Grid xaml:</p>
  
  <pre><code>&lt;xcdg:DataGridControl ItemsSource="{Binding Source={StaticResource MySource}}"
                            BorderThickness="1" AutoCreateColumns="False" ReadOnly="False" NavigationBehavior="CellOnly"&gt;
          &lt;xcdg:DataGridControl.DefaultCellEditors&gt;
              &lt;xcdg:CellEditor x:Key="{x:Type system:Boolean}"&gt;
                  &lt;xcdg:CellEditor.EditTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;xcdg:CheckBox xcdg:Cell.IsCellFocusScope="True"
                                         IsChecked="{xcdg:CellEditorBinding}"
                                         HorizontalContentAlignment="Right"
                                         /&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/xcdg:CellEditor.EditTemplate&gt;
  
                  &lt;xcdg:CellEditor.ActivationGestures&gt;
                      &lt;xcdg:TextInputActivationGesture /&gt;
                  &lt;/xcdg:CellEditor.ActivationGestures&gt;
  
              &lt;/xcdg:CellEditor&gt;
          &lt;/xcdg:DataGridControl.DefaultCellEditors&gt;
  
          &lt;xcdg:DataGridControl.Columns&gt;
              &lt;xcdg:Column Title="Description" FieldName="Description" ReadOnly="True"/&gt;
              &lt;xcdg:Column Title="Start period" FieldName="Start" ReadOnly="True"/&gt;
              &lt;xcdg:Column Title="End Period" FieldName="End" ReadOnly="True"/&gt;
              &lt;xcdg:Column Title="Finished" FieldName="IsFinished"/&gt;                
          &lt;/xcdg:DataGridControl.Columns&gt;
          &lt;!--&lt;xcdg:DataGridControl.Columns&gt;
          &lt;/xcdg:DataGridControl.Columns&gt;--&gt;
  
      &lt;/xcdg:DataGridControl&gt;
  </code></pre>