Exemplo n.º 1
0
 //When the user selects a row in the datagrid
 private void dgv_Region_SelectionChanged(object sender, SelectedCellsChangedEventArgs e)
 {
     if (arearegion.RSearchControl.ResultsGrid.SelectedItem != null)
     {
         EditingAreaRegion = (arearegion.RSearchControl.ResultsGrid.SelectedItem as FIN_Region).Clone() as FIN_Region;
     }
 }
Exemplo n.º 2
0
 //This is a event which fires whenever newitems arrive at the datagrid
 private void ItemSourceChanged(object sender, EventArgs e)
 {
     AreaRegionInformation             = arearegion.RSearchControl.ResultsGrid.ItemsSource as ObservableCollection <FIN_Region>;
     arearegion.RegionGrid.DataContext = AreaRegionInformation;
     if (AreaRegionInformation[0] != null)
     {
         EditingAreaRegion = AreaRegionInformation[0].Clone();
     }
 }