code: def onSave(self, grid):#, age_data_type='site'):
          
          # deselect column, including remove 'EDIT ALL' label
          if self.drop_down_menu:
              self.drop_down_menu.clean_up()
  
          # save all changes to er_magic data object
          self.grid_builder.save_grid_data()
  
          # don't actually write data in this step (time-consuming)
          # instead, write to files when user is done editing
          #self.er_magic_data.write_files()
  
          wx.MessageBox('Saved!', 'Info',
                        style=wx.OK | wx.ICON_INFORMATION)
docs: Save grid data in the data object