private void DistLoadAddBtn_Click(object sender, RoutedEventArgs e) { //New object of the Model(Auto Column Generating) var newDistLoadRow = new DistLoadAssignmentModel(); //Add object of the model to a collection of the object mode(DataGrid) DistLoadAssignmentViewModel.DistLoadModelStaticCollection.Add(newDistLoadRow); }
private void DistLoadGridData_SelectionChanged(object sender, SelectionChangedEventArgs e) { DLAM = (DistLoadAssignmentModel)DistLoadGridData.SelectedItem; }