Search code examples
c++wxwidgets

Disable editing in wxWidgets listctrl


Good evening,

I need to disable the editing cells in wxWindows listctrl class. i'm use it as a report-style control. Can't find out how to disable this feature. are there smth. like 'Edit' event for it?

Thanks in advance.


Solution

  • wxListCtrl is not editable by default, you must be specifying wxLC_EDIT_LABELS when creating it to make it editable in the first place. So simply not using this style should do what you want.