Beispiel #1
0
 //When the user selects a row in the datagrid
 private void dgv_EmployeeJI_SelectionChanged(object sender, SelectedCellsChangedEventArgs e)
 {
     if (employeeji.JISearchControl.ResultsGrid.SelectedItem != null)
     {
         EditingEmployeeJI = (employeeji.JISearchControl.ResultsGrid.SelectedItem as HR_EMPLOYEE_JI).Clone() as HR_EMPLOYEE_JI;
     }
 }
Beispiel #2
0
 //This is a event which fires whenever newitems arrive at the datagrid
 private void ItemSourceChanged(object sender, EventArgs e)
 {
     EmployeeJIInformation = employeeji.JISearchControl.ResultsGrid.ItemsSource as ObservableCollection <HR_EMPLOYEE_JI>;
     employeeji.EmployeeJIGrid.DataContext = EmployeeJIInformation;
     if (EmployeeJIInformation.Count > 0)
     {
         EditingEmployeeJI = EmployeeJIInformation[0].Clone();
     }
 }