title: Add New Row to a DataGrid in Silverlight WCF RIA Services
body: <p>Some guidance with Silverlight WCF RIA Services... DataGrid and detail view on the same page </p>
  
  <pre><code>Control layout
  DataGrid
  Detail View [Add New Row (button)]
  </code></pre>
  
  <p>If I wanted to add a new row from a button then pick that new row in the datagrid how would I do that?</p>
  
  <p>I have tried:</p>
  
  <pre><code>DetailViewTest.Web.Services.Mode1DomainContext ctx = 
         (Mode1DomainContext)wordDomainDataSource.DomainContext;
  
  Word word = new Word()
  {
      Word1 = this.word1TextBox.Text,
      DateAdded = DateTime.Now
  };
  ctx.Words.Add(word);
  ctx.SubmitChanges();
  </code></pre>
  
  <p>This adds the word to that database but not the datagrid even though the datasource for the data is the wordDomainDataSource. If I restart the application it then shows up in the datagrid. Some help with this would be great!</p>
  
  <p>(Using the Silverlight 4 business Application as a starting project ) </p>