code: def OnItemSelected(self, event):
          
  
          value = event.m_itemIndex
          self.startIndex = value
  
          self.switching = True
          post_command_event(self, self.GridActionTableSwitchMsg, newtable=value)
          self.switching = False
  
          event.Skip()
docs: Item selection event handler