code: def OnViewFrozen(self, event):
          
  
          self.grid._view_frozen = not self.grid._view_frozen
  
          self.grid.grid_renderer.cell_cache.clear()
          self.grid.ForceRefresh()
  
          event.Skip()
docs: Show cells as frozen status