How to disable the cell's editor of grid

hi all.
as the subject I would like to know how to do it so that you can not edit in a cell of the grid.
Thanks.
Fabiolino

www.fabiospadaro.com

fabio spadaro wrote:

hi all.
as the subject I would like to know how to do it so that you can not edit in a cell of the grid.
Thanks.
Fabiolino

I use my grid instance's SetReadOnly(row, col, True). You can use this to disable entire columns or rows. At least, that's what I do. The wxwidgets docs say you can use it to disable individual cells...whatever. See also: http://wiki.wxpython.org/wxPyGridTableBase

There's also the EnableEditing(False) method, which I think will disable the entire grid.

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

SetReadOnly(row, col, True) does work !
thank you very much, Mike Driscoll

···

2009/4/6 Mike Driscoll mike@pythonlibrary.org

fabio spadaro wrote:

hi all.

as the subject I would like to know how to do it so that you can not edit in a cell of the grid.

Thanks.

Fabiolino

I use my grid instance’s SetReadOnly(row, col, True). You can use this to disable entire columns or rows. At least, that’s what I do. The wxwidgets docs say you can use it to disable individual cells…whatever. See also: http://wiki.wxpython.org/wxPyGridTableBase

There’s also the EnableEditing(False) method, which I think will disable the entire grid.


Mike Driscoll

Blog: http://blog.pythonlibrary.org


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


Fabio Spadaro
www.fabiospadaro.com

EnableEditing( false );