private void PointLoadAddBtn_Click(object sender, RoutedEventArgs e) { //New object of the Model(Auto Column Generating) var newPointLoadRow = new PointLoadAssignmentModel(); //Add object of the model to a collection of the object mode(DataGrid) PointLoadAssignmentViewModel.PointLoadModelStaticCollection.Add(newPointLoadRow); }
private void PointLoadGridData_SelectionChanged(object sender, SelectionChangedEventArgs e) { PLAM = (PointLoadAssignmentModel)PointLoadGridData.SelectedItem; }