code: def OnCellFrozen(self, event):
          
  
          with undo.group(_("Frozen")):
              self.grid.actions.change_frozen_attr()
  
          self.grid.ForceRefresh()
  
          self.grid.update_attribute_toolbar()
  
          event.Skip()
docs: Cell frozen event handler