public void ReadDataBase(object rowData) { studentDataTable temp = model.Read(); StudentTable.Clear(); foreach (studentRow row in temp) { StudentTable.ImportRow(row); } }
public void DeleteDataBase(object rowData) { DataRowView rowView = rowData as DataRowView; studentDataTable temp = model.Delete(rowView); StudentTable.Clear(); foreach (studentRow row in temp) { StudentTable.ImportRow(row); } }