Exemplo n.º 1
0
 //When the user selects a row in the datagrid
 void dgv_EmployeeJS_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (employeejs.JSSearchControl.ResultsGrid.SelectedItem != null)
     {
         EditingEmployeeJS = (employeejs.JSSearchControl.ResultsGrid.SelectedItem as HR_EMPLOYEE_JS).Clone() as HR_EMPLOYEE_JS;
     }
 }
Exemplo n.º 2
0
 //This is a event which fires whenever newitems arrive at the datagrid
 private void ItemSourceChanged(object sender, EventArgs e)
 {
     EmployeeJSInformation = employeejs.JSSearchControl.ResultsGrid.ItemsSource as ObservableCollection <HR_EMPLOYEE_JS>;
     employeejs.EmployeeJSGrid.DataContext = EmployeeJSInformation;
     if (EmployeeJSInformation.Count > 0)
     {
         EditingEmployeeJS = EmployeeJSInformation[0].Clone();
     }
 }