def BeginEdit(self, row, col, grid):
        # We have to manually set the focus to the control
        self._editor.update_editor()
        control = self._control
        control.Show(True)
        control.SetFocus()
        if isinstance(control, wx.TextCtrl):
            control.SetSelection(-1, -1)
Make sure the control is ready to edit.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/grid/trait_grid_cell_adapter.py/TraitGridCellAdapter.BeginEdit