Disabling selection in a grid, but still being able to set the selection programmatically

With a grid, is there a way for me to set the selection from my code (with SelectRow), but then disable the user’s ability to change that selection?

Based on what I read here:

http://wxpython-users.1045709.**n5.nabble.com/how-to-disable-**
range-selection-in-wx-Grid-**td2322104.html<http://wxpython-users.1045709.n5.nabble.com/how-to-disable-range-selection-in-wx-Grid-td2322104.html&gt;

I handled this by catching the mouse events from the grid and ignoring
them.

···

On Thu, Oct 10, 2013 at 10:52 AM, Larry Martell <larry.martell@gmail.com>wrote:

With a grid, is there a way for me to set the selection from my code (with
SelectRow), but then disable the user's ability to change that selection?