title: store grid and it's child control in to database and retrieve it in another window
body: <p>i have main grid in window which hold all my data i want to store it in database and retrieve it in another window. my grid hold following control:</p>
  
  <pre><code> &lt;Grid Name="myGrid" Margin="0,1,0,-1"&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="360*"/&gt;
              &lt;ColumnDefinition Width="153*"/&gt;
              &lt;ColumnDefinition Width="739*"/&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;MediaElement HorizontalAlignment="Left" Height="587" Margin="24,46,0,0" VerticalAlignment="Top" Width="797" Grid.ColumnSpan="3"/&gt;
          &lt;Label Content="Dishes" HorizontalAlignment="Left" Margin="353,132,0,0" VerticalAlignment="Top" Width="75" FontSize="16" Name = "Dishes" Height="30" Grid.Column="2"/&gt;
          &lt;Label Content="Quantities" Height="30" HorizontalAlignment="Left" Margin="503,130,0,0" VerticalAlignment="Top" Width="90" FontSize="16" Name="Quantities" Grid.Column="2"/&gt;
          &lt;Label Content="Price" Height="30" HorizontalContentAlignment ="Center"  Margin="634,131,10,0" VerticalAlignment="Top" FontSize="16" Name="Price" Grid.Column="2"/&gt;
          &lt;Label Content="Totel Before Tax" HorizontalAlignment="Left" Height="32" Margin="324,487,0,0" VerticalAlignment="Top" Width="210" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
          &lt;Label Content="950" HorizontalContentAlignment ="Center"  Margin="629,487,10,0" VerticalAlignment="Top" Width="100" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
          &lt;Label Content="Discount" HorizontalAlignment="Left" Margin="324,529,0,0" VerticalAlignment="Top" Width="128" Height="35" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
          &lt;Label Content="10%" HorizontalContentAlignment="Center"  Margin="634,524,10,0" VerticalAlignment="Top" Width="95" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
          &lt;Label Content="Tax" HorizontalAlignment="Left" Margin="324,569,0,0" VerticalAlignment="Top" Width="119" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
          &lt;Label Content="20%" HorizontalContentAlignment="Center"  Margin="634,566,10,0" VerticalAlignment="Top" Width="95" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
  
          &lt;Image HorizontalAlignment="Left" Height="587" Margin="31,42,0,0" VerticalAlignment="Top" Width="797" Source="Lighthouse.jpg" Stretch="Fill" Grid.ColumnSpan="3" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/&gt;
          &lt;Image HorizontalAlignment="Left" Height="114" Margin="490,0,0,0" VerticalAlignment="Top" Width="132" Source="logo.png" Stretch="Fill" Grid.Column="2" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/&gt;
          &lt;Label Content="Advertisement" HorizontalAlignment="Left" Margin="24,4,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.54,-0.363" Width="196" FontSize="20"/&gt;
          &lt;Label Content="Grand Total" HorizontalAlignment="Left" Height="37" Margin="324,606,0,0" VerticalAlignment="Top" Width="210" FontSize="20" MouseDoubleClick="Dishes_MouseDoubleClick" Grid.Column="2"/&gt;
          &lt;Label Content="1045" HorizontalContentAlignment ="Center"  Margin="629,608,10,0" VerticalAlignment="Top" Width="100" FontSize="20" Grid.Column="2"/&gt;
  
          &lt;Label Content="Kaju Kari" Height="30" HorizontalAlignment="Left" HorizontalContentAlignment="Center"  Margin="342,180,0,0" VerticalAlignment="Top" Width="103" FontSize="16" Grid.Column="2" Tag="1" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Label Content="2" HorizontalAlignment="Left" Margin="511,177,0,0" VerticalAlignment="Top" Width="69" Height="30" FontSize="16" Grid.Column="2" Tag="100" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Label Content="240" HorizontalAlignment="Left" Margin="663,179,0,0" VerticalAlignment="Top" Width="37" FontSize="16" Grid.Column="2" Tag="200" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Label Content="Paneer Kadai" Height="30" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="341,213,0,0" VerticalAlignment="Top" Width="103" FontSize="16" Grid.Column="2" Tag="2"/&gt;
          &lt;Label Content="2" HorizontalAlignment="Left" Margin="510,214,0,0" VerticalAlignment="Top" Width="69" Height="29" RenderTransformOrigin="0.652,0.586" FontSize="16" Grid.Column="2" Tag="101" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Label Content="210" HorizontalAlignment="Left" Margin="664,213,0,0" VerticalAlignment="Top" FontSize="16" Grid.Column="2" Tag="201" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Label Content="Better Roti" Height="30" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="340,249,0,0" VerticalAlignment="Top" Width="104" FontSize="16" Grid.Column="2" Tag="3"/&gt;
          &lt;Label Content="5" HorizontalAlignment="Left" Margin="510,248,0,0" VerticalAlignment="Top" Width="68" Height="28" FontSize="16" Grid.Column="2" Tag="102" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Label Content="10" HorizontalAlignment="Left" Margin="665,248,0,0" VerticalAlignment="Top" Width="35" FontSize="16" Grid.Column="2" Tag="202" MouseDoubleClick="Label_MouseDoubleClick_1"/&gt;
          &lt;Button Content="Write" Grid.Column="2" HorizontalAlignment="Left" Margin="647,14,0,0" VerticalAlignment="Top" Width="75" Name="btnWrite"/&gt;
  
      &lt;/Grid&gt; 
  </code></pre>